About code

18 views
Skip to first unread message

Pujitha Sanaka

unread,
May 2, 2015, 2:42:54 AM5/2/15
to seleniu...@googlegroups.com
List<WebElement> pharmacy=driver.findElements(By.xpath("//*[@id='ctl00_ctl17_pnlLHN']/div[1]/ul")); 
   System.out.println(pharmacy);


iam using above code but this list size displays 1 only 
   any one plz help me

pavankumar abvg

unread,
May 2, 2015, 2:55:03 AM5/2/15
to seleniu...@googlegroups.com
Hi,

Please use pharmacy.size() to get the number of elements in the List.

Thanks,
Pavan Kumar A B V G
Reply all
Reply to author
Forward
0 new messages