android - Scroll down with Java using Selenium Web Driver (Appium) -




i'm trying scroll down in apk page java. i'm using appium , selenium.

i tried:

javascriptexecutor jse = (javascriptexecutor)driver; jse.executescript("window.scrollby(0,250)", ""); 

and driver.scrolltoexact(); commands not supported "webdriver".

how can this?

if want scroll page on mobile application using appium can use below code using appium driver

syntax : driver.swipe(startx, starty, endx, endy, duration);

example :

driver.swipe(200, 900, 200, 100, 2000); 

if want scroll webpage in browser can use traditional way of scrolling using javascript.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -