Quantcast
Channel: Selenium Python: How can I count the number of tables in a div? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by supputuri for Selenium Python: How can I count the number of tables...

Simple solution is using the below xpath. //*[@id='emailwrapper']/div/div/table Your code should be lastTable = len(driver.find_elements_by_xpath("//*[@id='emailwrapper']/div/div/table"))-1 print...

View Article



Answer by Jim Zhou for Selenium Python: How can I count the number of tables...

Assuming that there would be at least one element that matches the xpath of '//*[@id="emailwrapper"]/div/div/table', you can simply do:...

View Article

Selenium Python: How can I count the number of tables in a div?

I'm trying to find an element with Xpath but it changes like so: //*[@id="emailwrapper"]/div/div/table[1]/tbody/tr/td[2]/a //*[@id="emailwrapper"]/div/div/table[2]/tbody/tr/td[2]/a...

View Article
Browsing latest articles
Browse All 3 View Live


Latest Images