Currently working on Web task automation.
When I go to the webpage I want, I have Selenium look for Elements using their Xpath
receivedTime = browser.find_elements_by_xpath('//*[starts-with(@id, "anchor") and contains(@id, "_0")]')
for time in receivedTime:
So it finds all those Elements. How would I go about retrieving which xpath is currently being used during the for Loop? So that I can use an If statement based on the current xpath.
For example, if the current xpath == "anchor0_0":
Thank you.