mercredi 14 août 2019

Someone help me with how to find a nth description of a html list

I am very beginner in selenium web driver. I want to find a text which is part of html list. I tried with cssSelector but no result.

Tried below code:

WebElement output = driver.findElement(By.cssSelector("ul > li:nth- 
child(5)")); 

System.out.println(output);  

Please some body guide me regarding this




Aucun commentaire:

Enregistrer un commentaire