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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -