0
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

Prophet
  • 21,440
  • 13
  • 47
  • 64

1 Answers1

0

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

Prophet
  • 21,440
  • 13
  • 47
  • 64