0

I am learning to make use of selenium in python. Wrote the instructions to open and login to a website. Once in, I need to click the "Reports .." tab, flagged in the attached snapshot.
How do I do that, please, which element would be the locator/identifier ?

Thank you,

enter image description here

2 Answers 2

3

You can use the text to identify the tab like below

driver.find_element_by_xpath("//td[contains(text(),'Reports & State')]").click()
Sign up to request clarification or add additional context in comments.

Comments

0

You can use xpath selector in order to select that particular element, that can be done by right click on the flagged element and copy --> copyxpath.

And try

driver.find_element_by_xpath("copied xpath").click()

That should work..!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.