Issue
driver = webdriver.Chrome()
driver.get("https://discord.com/register")
driver.find_element_by_xpath("//input[@class='inputDefault-_djjkz input-cIJ7To' and @type='email']").send_keys(mail)
driver.find_element_by_xpath("//input[@class='inputDefault-_djjkz input-cIJ7To' and @type='text']").send_keys(name)
driver.find_element_by_xpath("//input[@class='inputDefault-_djjkz input-cIJ7To' and @type='password']").send_keys(name)
I have problem.
I do autogenerator acounts discord.mail,password,name work. But with date I have problems because they don't have input. Help me please
Solution
To open select Month you can use
driver.find_element_by_xpath("//div[contains(@class,'inputMonth')]").click()
Then select some month with something like
driver.find_element_by_xpath("//div[@id='react-select-5-option-1']").click()
The last number here is the number of option in the list.
Similarly you can select the Day and Year
Answered By - Prophet
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.