0 votes
in Selenium by

In webdriver, what is the method that counts the number of elements?

a) driver.getCountOfElements()

b) driver.findElement(By.id("search")).getCount()

c) driver.findElements(By.id("search")).size()

d) driver.findElements(By.id("search")).length()

2 Answers

0 votes
by

 driver.findElements(By.id("search")).size()

0 votes
by

driver.findElements(By.id("search")).size()

...