Siddesh VSM
Siddesh VSM

Reputation: 71

Codeceptjs not able to scroll/swipe down without using an element

I am not able to swipe /scroll down in an Android application, I am using codeceptjs and following method but this method will act only on the visible element but I need to scroll down to the bottom of the page /on a specific element without using any element.

 static async Scroll(){
       let locator1 = '//android.widget.ScrollView' ;
       let locator2 = '//android.widget.TextView[@text="xxx"]';
       I.swipeTo(locator1,locator2,'up',30, 200, 800);}

Upvotes: 1

Views: 2379

Answers (1)

Siddesh VSM
Siddesh VSM

Reputation: 71

I Got the answer for the same we just need to pass x and y objects to the performSwipe method like below :

I.performSwipe({x:300,y:1300},{x:300,y:300});

Upvotes: 4

Related Questions