0 votes
in Selenium by
Which of the following is the correct Webdriver statement to retrieve the row count of a Table?

a) All of the listed options

b) Driver.FindElements(By.Xpath(“//table[@id=’tableID’]/tr”)).size();

c) Driver.FindElements(By.Xpath(“//table[@id=’tableID’]/tr”)).getrowcount();

d) Driver.FindElements(By.Xpath(“//table[@id=’tableID’]/tr”)).getcount();

1 Answer

0 votes
by
Driver.FindElements(By.Xpath(“//table[@id=’tableID’]/tr”)).size();

Related questions

0 votes
asked Mar 18, 2020 in Selenium by Hodge
0 votes
asked Sep 2, 2022 in Ruby by DavidAnderson
...