Scroll till element displayed


#1

Hi,

is there any method for Scroll till element displayed in appium studio in Java?


#2

See documentation for swipeWhileElementNotFound

https://docs.experitest.com/display/TD/SeeTestAutomation-+SwipeWhileNotFound


#3

what would be the import for this in eclipse IDE


#4

import com.experitest.appium.SeeTestClient

There is also a way to do this w/o the SeeTestClient. Check out the documentation located at:
https://docs.experitest.com/display/TD/Additional+Commands


#5

Try using following code for ScrollTo element…

public static void ScrollTo(IWebElement element)
{
IJavaScriptExecutor js = (IJavaScriptExecutor)AppiumDriver.Instance;
string title = (string)js.ExecuteScript(“arguments[0].scrollIntoView(true);”, element);

    }

More info visit: