Custom scroll approach in (Espresso)

Updated 16 April 2019

Save

How to do “Custom scroll” when “swipe ” and “scrollto” approach not work in Espresso?

In espresso when we have to scroll to any of the element and in that page if the code having nested scroll then “swipeup()”, “swipedown()” and “scrollto()” approach may not work at some time.

So here is the solution where we can scroll to the desired position of element which is not currently displaying on screen but will be displayed on scroll.

 

 

After this we have to use “custom scroll” like this :-

1) For matching text of element and scroll.

2) When searching on the basis of id and scroll.

3) When searching on the basis of string and scroll.

 

 

 

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • Zess
    • S.Johnson (Moderator)
  • Start a Project


      Message Sent!

      If you have more details or questions, you can reply to the received confirmation email.

      Back to Home