I want to get the numbers of rows of a table on a web page using selenium python. I tried the following way describe here: How to count no of rows in table from web application using selenium python webdriver
rows=len(driver.find_element_by_xpath("//table[@id='SheetContentPlaceHolder_GridView1']/tbody/tr"))
The result I get is the following:
rows=len(driver.find_element_by_xpath("//table[@id='SheetContentPlaceHolder_GridView1']/tbody/tr"))
TypeError: object of type 'FirefoxWebElement' has no len()
I don't understand what I misdo.
Thanks for your help