Scroll till element displayed

#1

Hi,

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

0 Likes

#2

See documentation for swipeWhileElementNotFound

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

0 Likes

#3

what would be the import for this in eclipse IDE

0 Likes

#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

0 Likes

#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:

0 Likes

#6

You can use below mentioned Method which is present Appium studio

swipeWhileElementNotFound

0 Likes