jeudi 1 septembre 2016

how to print list of categories and click on each category one by one in selenium/appium?

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");

}

enter image description here

Aucun commentaire:

Enregistrer un commentaire