Start a Project

Custom scroll approach in (Espresso)

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.

 

 

 

Exit mobile version