Share via


IApp.ScrollTo Method

Definition

Scroll until an element that matches the toMarked is shown on the screen.

public void ScrollTo (string toMarked, string withinMarked = null, Xamarin.UITest.ScrollStrategy strategy = Xamarin.UITest.ScrollStrategy.Auto, double swipePercentage = 0.67, int swipeSpeed = 500, bool withInertia = true, Nullable<TimeSpan> timeout = null);
abstract member ScrollTo : string * string * Xamarin.UITest.ScrollStrategy * double * int * bool * Nullable<TimeSpan> -> unit
Public Sub ScrollTo (toMarked As String, Optional withinMarked As String = null, Optional strategy As ScrollStrategy = Xamarin.UITest.ScrollStrategy.Auto, Optional swipePercentage As Double = 0.67, Optional swipeSpeed As Integer = 500, Optional withInertia As Boolean = true, Optional timeout As Nullable(Of TimeSpan) = null)

Parameters

toMarked
String

Marked selector to select what element to bring on screen. See Marked(String) for more information.

withinMarked
String

Marked selector to select what element to scroll within. See Marked(String) for more information.

strategy
ScrollStrategy

Strategy for scrolling element.

swipePercentage
Double

How far across the element to swipe (from 0.0 to 1.0). Ignored for programmatic scrolling.

swipeSpeed
Int32

The speed of the gesture. Ignored for programmatic scrolling.

withInertia
Boolean

Whether swipes should cause inertia. Ignored for programmatic scrolling.

timeout
Nullable<TimeSpan>

The TimeSpan to wait before failing.

Applies to