Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
605 views
by The go-to Tester (360 points)
retagged by
I need some help on scrolling screen using appium library.

1 Answer

1 like 0 dislike
by The go-to Tester (473 points)

U can scroll phone screen using two appium methods

1) driver.scrollTo(String "");   It check element name contain text.

Eg.   driver.scrollTo("Views");

 We have used driver.scrollTo(String text) methods for scrolling. It will scroll down steps by step and look If given text Is displayed on screen or not. When text appears, It will stop scrolling.

  • First driver.scrollTo("Views"); will check if element containing test "Views" Is display on screen or not. If not display then It will scroll down down and check for text once again.

2) driver.scrollToExact(String ""); It check element name should have exact match


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...