The page I’m trying to automate has n same buttons at different levels. These n buttons have same attributes. Lets say, if I want to click on the second, how could I do that using webdriver and CSS, thanks.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
say for example that unique attribute is class=’custom_button’ you can use
this will click on the third button with classname ‘custom_button’ on the page.