Hey there! any question in your mind? Ask It Now!.

Popular Categories





Selendroid- scroll does not update content

+2 votes
514 views
asked in Software Testing by nitu (1,680 points)

I am automating android app using Selendroid and when I am using scroll so window is scrolling somehow content of list view is not getting update instead of blank window is coming.

Here is my function :

TouchActions flick = new TouchActions(driver).scroll(driver.findElement(By.id("YOURS ID HERE")), 1, 1000);
flick.perform();

Please help .

 

1 Answer

+2 votes
answered by Himanshu Expert (5,940 points)
selected by nitu
 
Best answer

Hi Nitu ,

I was facing same issue that scroll was working fine but content was not updating and blank screen was coming.

This issue was resolved by using this , you just have to use flick like this .

TouchActions flick = new TouchActions(driver).flick(driver.findElement(By.id("YOURS ID HERE")), 0, -730, 100);
flick.perform();

I hope it will help you also .

commented by nitu (1,680 points)
Thanks Himanshu! Its working now... Thank you so much ...

Related Questions

Not a Member yet?

Ask to Folks Login

My Account
141 Folks are online
0 members and 141 guest online
Your feedback is highly appreciated