c# - How to scroll down in appium -
i know when want scroll down specific element in appium use following driver.scrollto(value);
value changed every time , can't detect can not use value scroll until find element, element last element in page , number of element in page changed between user , another.
so, there other way scroll down till end of page ?
use xpath find element without using value(as dynamic)
then use element scroll,
webelement element = driver.findelementbyxpath("xpath_of_element"); ((javascriptexecutor) driver).executescript("arguments[0].scrollintoview(true);", element);
just post dom of page..i'll give efficient xpath if dom dynamic locator work...
Comments
Post a Comment