self.driver.find_element_by_xpath("//span[@class='bog']").click()
This is my current code. Using this method. I can click on the first email of my gmail inbox. I want to then click on the second email or the third. But I'm unsure how to do it
self.driver.find_element_by_xpath("//span[@class='bog' and @xpath='2']").click()
I tried this method but it didn't work. Using chropath. I was able to search for "bog" and then find out a list of all the emails and each one showed an:
"<span id=":2y" class="bog" xpath="1"></span>"
"<span id=":2y" class="bog" xpath="2"></span>"
Any help regarding this issue? I would like to able to click on the second email of my inbox every time.