I want to print and then click on list of all items like home top stories , latest news , opinion etc each and every category as u can see in image but did get success please help..
List<WebElement> list=driver.findElements(By.id("com.readwhere.whitelabel.prabhatkhabar:id/left_drawer_list"));
for(int i=0;i<list.size();i++)
{
System.out.println(list.get(i).getText()+"\n");
}
Aucun commentaire:
Enregistrer un commentaire