-1

enter image description here

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.

1

1 Answer 1

-1

If you want to click on 'Male' radio-button try

driver.find_element_by_xpath("//label[.='Male']/following-sibling::input[@name='sex']").click()
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.