How to find out all the ‘li’ element of a particular ‘ul’ element?

Default Asked on June 23, 2016 in Selenium WebDriver.

driver.findElements(by.xpath(“//ul/li”));
it will give you a list of li having there parent as ul

on June 24, 2016.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.