selendroid - How to get the size of an article has been displayed in the mobile web page using java? -
i want total article size displayed in mobile web page using java in selendroid web driver.
my mobile page contains article 21 articles. but, in page view displays 10 articles. next 11 displayed in next page, means, need scroll , see remaining articles.
i have tried below coding, prints size 10 article only.
how can able total size of article present in mobile web page?
// articles list list articlelists = wait.until(expectedconditions .visibilityofallelementslocatedby(by .cssselector(".chtest .media-item"))); int s=articlelists.size(); system.out.println("size="+s);
Comments
Post a Comment