I want the bot to click on male But I don't know how I tried to use this, but it didn't work for me
driver.find_element_by_xpath("//input[@name='sex']").click()
I want a command to make the bot click on male in Python.
CodePudding user response:
If you want to click on 'Male' radio-button try
driver.find_element_by_xpath("//label[.='Male']/following-sibling::input[@name='sex']").click()