selenium-webdriver findElements.Size

140 views
Skip to first unread message

sriram poduri

unread,
May 18, 2016, 4:01:27 AM5/18/16
to Selenium Users
findElements.size is not working in selenium-webdriver javascript bindings.

Can anyone pls let me know how to find the number of elements?

Thanks

Anand

unread,
May 18, 2016, 2:46:04 PM5/18/16
to seleniu...@googlegroups.com
  
List <WebElement> elementsList= driver.findElements(By.xpath(elementxpath)));

int listSize= elementsList.size();

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/af677614-cfbc-4ca2-a679-9950b6370f93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages