AndroidApp AndroidApp AndroidApp Class

Definition

Represents a running Android application.

public class AndroidApp : Xamarin.UITest.IApp
type AndroidApp = class
    interface IApp
Public Class AndroidApp
Implements IApp
Inheritance
AndroidAppAndroidAppAndroidApp
Implements

Constructors

AndroidApp(IAndroidAppConfiguration) AndroidApp(IAndroidAppConfiguration) AndroidApp(IAndroidAppConfiguration)

Main entry point for creating Android applications. Should not be called directly but instead be invoked through the use of ConfigureApp.

Properties

Config Config Config

Contains runtime information about the currently running device.

Device Device Device

Runtime information and control of the currently running device.

Print Print Print

Contains helper methods for outputting the result of queries instead of resorting to Console.

TestServer TestServer TestServer

Allows HTTP access to the test server running on the device.

Methods

Back() Back() Back()

Presses the back button of the device.

ClearText() ClearText() ClearText()

Clears text from the currently focused element.

ClearText(Func<AppQuery,AppQuery>) ClearText(Func<AppQuery,AppQuery>) ClearText(Func<AppQuery,AppQuery>)

Clears text from a matching element that supports it.

ClearText(Func<AppQuery,AppWebQuery>) ClearText(Func<AppQuery,AppWebQuery>) ClearText(Func<AppQuery,AppWebQuery>)

Clears text from a matching element that supports it.

ClearText(String) ClearText(String) ClearText(String)

Clears text from a matching element that supports it.

DismissKeyboard() DismissKeyboard() DismissKeyboard()

Hides keyboard if present

DoubleTap(Func<AppQuery,AppQuery>) DoubleTap(Func<AppQuery,AppQuery>) DoubleTap(Func<AppQuery,AppQuery>)

Performs two quick tap / touch gestures on the matched element. If multiple elements are matched, the first one will be used.

DoubleTap(Func<AppQuery,AppWebQuery>) DoubleTap(Func<AppQuery,AppWebQuery>) DoubleTap(Func<AppQuery,AppWebQuery>)

Performs two quick tap / touch gestures on the matched element. If multiple elements are matched, the first one will be used. This version is specifically for queries on web views

DoubleTap(String) DoubleTap(String) DoubleTap(String)

Performs two quick tap / touch gestures on the matched element. If multiple elements are matched, the first one will be used.

DoubleTapCoordinates(Single, Single) DoubleTapCoordinates(Single, Single) DoubleTapCoordinates(Single, Single)

Performs a quick double tap / touch gesture on the given coordinates.

DragAndDrop(String, String, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action) DragAndDrop(String, String, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action) DragAndDrop(String, String, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

Performs a long touch on an item, followed by dragging the item to a second item and dropping it

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action) DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action) DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, DropLocation, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Action)

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>) DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>) DragAndDrop(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>)

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

DragAndDrop(String, String) DragAndDrop(String, String) DragAndDrop(String, String)

> Performs a long touch on an item, followed by dragging the item to a second item and dropping it

DragCoordinates(Single, Single, Single, Single) DragCoordinates(Single, Single, Single, Single) DragCoordinates(Single, Single, Single, Single)

Performs a continuous drag gesture between 2 points.

EnterText(String) EnterText(String) EnterText(String)

Enters text into the currently focused element.

EnterText(Func<AppQuery,AppQuery>, String) EnterText(Func<AppQuery,AppQuery>, String) EnterText(Func<AppQuery,AppQuery>, String)

Enters text into a matching element that supports it.

EnterText(Func<AppQuery,AppWebQuery>, String) EnterText(Func<AppQuery,AppWebQuery>, String) EnterText(Func<AppQuery,AppWebQuery>, String)

Enters text into a matching element that supports it.

EnterText(String, String) EnterText(String, String) EnterText(String, String)

Enters text into a matching element that supports it.

Flash(Func<AppQuery,AppQuery>) Flash(Func<AppQuery,AppQuery>) Flash(Func<AppQuery,AppQuery>)

Highlights the results of the query by making them flash. Specify view elements using the fluent API. Defaults to all view objects that are visible.

Flash(String) Flash(String) Flash(String)

Highlights the results of the query by making them flash. Specify view elements using marked string.

Invoke(String, Object[]) Invoke(String, Object[]) Invoke(String, Object[])

Invokes a method on the app's main activity. For Xamarin apps, methods must be exposed using attributes as shown below.

Android example in activity:


[Export]
public string MyInvokeMethod(string arg, string arg2)
{
    return "uitest";
}
Invoke(String, Object) Invoke(String, Object) Invoke(String, Object)

Invokes a method on the app's main activity. For Xamarin apps, methods must be exposed using attributes as shown below.

Android example in activity:


[Export]
public string MyInvokeMethod(string arg)
{
    return "uitest";
}
PinchToZoomIn(String, Nullable<TimeSpan>) PinchToZoomIn(String, Nullable<TimeSpan>) PinchToZoomIn(String, Nullable<TimeSpan>)

Performs a pinch gestures on the matched element to zoom the view in. If multiple elements are matched, the first one will be used.

PinchToZoomIn(Func<AppQuery,AppQuery>, Nullable<TimeSpan>) PinchToZoomIn(Func<AppQuery,AppQuery>, Nullable<TimeSpan>) PinchToZoomIn(Func<AppQuery,AppQuery>, Nullable<TimeSpan>)

Performs a pinch gestures on the matched element to zoom the view in. If multiple elements are matched, the first one will be used.

PinchToZoomInCoordinates(Single, Single, Nullable<TimeSpan>) PinchToZoomInCoordinates(Single, Single, Nullable<TimeSpan>) PinchToZoomInCoordinates(Single, Single, Nullable<TimeSpan>)

Performs a pinch gestures to zoom the view in on the given coordinates.

PinchToZoomOut(Func<AppQuery,AppQuery>, Nullable<TimeSpan>) PinchToZoomOut(Func<AppQuery,AppQuery>, Nullable<TimeSpan>) PinchToZoomOut(Func<AppQuery,AppQuery>, Nullable<TimeSpan>)

Performs a pinch gestures on the matched element to zoom the view out. If multiple elements are matched, the first one will be used.

PinchToZoomOut(String, Nullable<TimeSpan>) PinchToZoomOut(String, Nullable<TimeSpan>) PinchToZoomOut(String, Nullable<TimeSpan>)

Performs a pinch gestures on the matched element to zoom the view out. If multiple elements are matched, the first one will be used.

PinchToZoomOutCoordinates(Single, Single, Nullable<TimeSpan>) PinchToZoomOutCoordinates(Single, Single, Nullable<TimeSpan>) PinchToZoomOutCoordinates(Single, Single, Nullable<TimeSpan>)

Performs a pinch gestures to zoom the view in on the given coordinates.

PressEnter() PressEnter() PressEnter()

Presses the enter key in the app.

PressMenu() PressMenu() PressMenu()

Presses the menu button of the device.

PressUserAction(Nullable<UserAction>) PressUserAction(Nullable<UserAction>) PressUserAction(Nullable<UserAction>)

Presses the user action in the app.

PressVolumeDown() PressVolumeDown() PressVolumeDown()

Presses the volume down button on the device.

PressVolumeUp() PressVolumeUp() PressVolumeUp()

Presses the volume up button on the device.

Query(String) Query(String) Query(String)

Queries view objects using the fluent API. Defaults to only return view objects that are visible.

Query(Func<AppQuery,InvokeJSAppQuery>) Query(Func<AppQuery,InvokeJSAppQuery>) Query(Func<AppQuery,InvokeJSAppQuery>)

Invokes Javascript on view objects using the fluent API.

Query(Func<AppQuery,AppQuery>) Query(Func<AppQuery,AppQuery>) Query(Func<AppQuery,AppQuery>)

Queries view objects using the fluent API. Defaults to only return view objects that are visible.

Query(Func<AppQuery,AppWebQuery>) Query(Func<AppQuery,AppWebQuery>) Query(Func<AppQuery,AppWebQuery>)

Queries web view objects using the fluent API. Defaults to only return view objects that are visible.

Query<T>(Func<AppQuery,AppTypedSelector<T>>) Query<T>(Func<AppQuery,AppTypedSelector<T>>) Query<T>(Func<AppQuery,AppTypedSelector<T>>)

Queries view objects values using the fluent API.

Repl() Repl() Repl()

Starts an interactive REPL (Read-Eval-Print-Loop) for app exploration and pauses test execution until it is closed.

Screenshot(String) Screenshot(String) Screenshot(String)

Takes a screenshot of the app in it's current state. This is used to denote test steps in the Xamarin Test Cloud.

ScrollDown(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollDown(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollDown(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean)

Scrolls down on the first element matching query.

ScrollDown(String, ScrollStrategy, Double, Int32, Boolean) ScrollDown(String, ScrollStrategy, Double, Int32, Boolean) ScrollDown(String, ScrollStrategy, Double, Int32, Boolean)

Scrolls down on the first element matching query.

ScrollDownTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollDownTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollDownTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollDownTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollDownTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollLeft(String, ScrollStrategy, Double, Int32, Boolean) ScrollLeft(String, ScrollStrategy, Double, Int32, Boolean) ScrollLeft(String, ScrollStrategy, Double, Int32, Boolean)

Scrolls left on the first element matching query.

ScrollLeft(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollLeft(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollLeft(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean)

Scrolls left on the first element matching query.

ScrollLeftTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollLeftTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollLeftTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollLeftTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollLeftTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollRight(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollRight(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollRight(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean)

Scrolls right on the first element matching query.

ScrollRight(String, ScrollStrategy, Double, Int32, Boolean) ScrollRight(String, ScrollStrategy, Double, Int32, Boolean) ScrollRight(String, ScrollStrategy, Double, Int32, Boolean)

Scrolls right on the first element matching query.

ScrollRightTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollRightTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollRightTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollRightTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollRightTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollTo(Func<AppQuery,AppWebQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollTo(Func<AppQuery,AppWebQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollTo(Func<AppQuery,AppWebQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollToHorizontalEnd(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalEnd(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalEnd(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its rightmost child element is visible. If multiple elements are matched, the first one will be used.

ScrollToHorizontalEnd(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalEnd(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalEnd(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its rightmost child element is visible. If multiple elements are matched, the first one will be used.

ScrollToHorizontalStart(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalStart(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalStart(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its leftmost child element is visible. If multiple elements are matched, the first one will be used.

Marked selector to select what element to scroll within. See Marked(String) for more information. Strategy for scrolling element. How far across the element to swipe (from 0.0 to 1.0). Ignored for programmatic scrolling. The speed of the gesture. Ignored for programmatic scrolling.The TimeSpan to wait before failing.
ScrollToHorizontalStart(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalStart(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToHorizontalStart(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its leftmost child element is visible. If multiple elements are matched, the first one will be used.

Entry point for the fluent API to specify the elements.Strategy for scrolling element. How far across the element to swipe (from 0.0 to 1.0). Ignored for programmatic scrolling. The speed of the gesture. Ignored for programmatic scrolling.The TimeSpan to wait before failing.
ScrollToVerticalEnd(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalEnd(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalEnd(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its bottom child element is visible. If multiple elements are matched, the first one will be used.

ScrollToVerticalEnd(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalEnd(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalEnd(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its bottom child element is visible. If multiple elements are matched, the first one will be used.

ScrollToVerticalStart(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalStart(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalStart(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its top child element is visible. If multiple elements are matched, the first one will be used.

Entry point for the fluent API to specify the elements.Strategy for scrolling element. How far across the element to swipe (from 0.0 to 1.0). Ignored for programmatic scrolling. The speed of the gesture. Ignored for programmatic scrolling.The TimeSpan to wait before failing.
ScrollToVerticalStart(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalStart(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>) ScrollToVerticalStart(String, ScrollStrategy, Double, Int32, Nullable<TimeSpan>)

Scroll the matching element so that its top child element is visible. If multiple elements are matched, the first one will be used.

Marked selector to select what element to scroll within. See Marked(String) for more information. Strategy for scrolling element. How far across the element to swipe (from 0.0 to 1.0). Ignored for programmatic scrolling. The speed of the gesture. Ignored for programmatic scrolling.The TimeSpan to wait before failing.
ScrollUp(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollUp(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean) ScrollUp(Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean)

Scrolls up on the first element matching query.

ScrollUp(String, ScrollStrategy, Double, Int32, Boolean) ScrollUp(String, ScrollStrategy, Double, Int32, Boolean) ScrollUp(String, ScrollStrategy, Double, Int32, Boolean)

Scrolls up on the first element matching query.

ScrollUpTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(Func<AppQuery,AppQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollUpTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(Func<AppQuery,AppWebQuery>, Func<AppQuery,AppQuery>, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollUpTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(Func<AppQuery,AppWebQuery>, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

ScrollUpTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>) ScrollUpTo(String, String, ScrollStrategy, Double, Int32, Boolean, Nullable<TimeSpan>)

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

SetOrientationLandscape() SetOrientationLandscape() SetOrientationLandscape()

Changes the current activity orientation to landscape mode.

SetOrientationPortrait() SetOrientationPortrait() SetOrientationPortrait()

Changes the current activity orientation to portrait mode.

SetSliderValue(String, Double) SetSliderValue(String, Double) SetSliderValue(String, Double)

Sets the value of a slider element that matches marked.

SetSliderValue(Func<AppQuery,AppQuery>, Double) SetSliderValue(Func<AppQuery,AppQuery>, Double) SetSliderValue(Func<AppQuery,AppQuery>, Double)

Sets the value of a slider element that matches query.

SwipeLeft(String) SwipeLeft(String) SwipeLeft(String)

Performs a right to left swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeLeft() SwipeLeft() SwipeLeft()

Performs a right to left swipe gesture.

SwipeLeft(Func<AppQuery,AppQuery>) SwipeLeft(Func<AppQuery,AppQuery>) SwipeLeft(Func<AppQuery,AppQuery>)

Performs a right to left swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeLeftToRight(Double, Int32, Boolean) SwipeLeftToRight(Double, Int32, Boolean) SwipeLeftToRight(Double, Int32, Boolean)

Performs a left to right swipe gesture.

SwipeLeftToRight(Func<AppQuery,AppQuery>, Double, Int32, Boolean) SwipeLeftToRight(Func<AppQuery,AppQuery>, Double, Int32, Boolean) SwipeLeftToRight(Func<AppQuery,AppQuery>, Double, Int32, Boolean)

Performs a left to right swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeLeftToRight(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean) SwipeLeftToRight(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean) SwipeLeftToRight(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean)

Performs a left to right swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeLeftToRight(String, Double, Int32, Boolean) SwipeLeftToRight(String, Double, Int32, Boolean) SwipeLeftToRight(String, Double, Int32, Boolean)

Performs a left to right swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeRight() SwipeRight() SwipeRight()

Performs a left to right swipe gesture.

SwipeRight(Func<AppQuery,AppQuery>) SwipeRight(Func<AppQuery,AppQuery>) SwipeRight(Func<AppQuery,AppQuery>)

Performs a left to right swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeRight(String, Double, Int32, Boolean) SwipeRight(String, Double, Int32, Boolean) SwipeRight(String, Double, Int32, Boolean)

Performs a left to right swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeRightToLeft(Double, Int32, Boolean) SwipeRightToLeft(Double, Int32, Boolean) SwipeRightToLeft(Double, Int32, Boolean)

Performs a right to left swipe gesture.

SwipeRightToLeft(Func<AppQuery,AppQuery>, Double, Int32, Boolean) SwipeRightToLeft(Func<AppQuery,AppQuery>, Double, Int32, Boolean) SwipeRightToLeft(Func<AppQuery,AppQuery>, Double, Int32, Boolean)

Performs a right to left swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeRightToLeft(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean) SwipeRightToLeft(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean) SwipeRightToLeft(Func<AppQuery,AppWebQuery>, Double, Int32, Boolean)

Performs a left to right swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

SwipeRightToLeft(String, Double, Int32, Boolean) SwipeRightToLeft(String, Double, Int32, Boolean) SwipeRightToLeft(String, Double, Int32, Boolean)

Performs a right to left swipe gesture on the matching element. If multiple elements are matched, the first one will be used.

Tap(Func<AppQuery,AppWebQuery>) Tap(Func<AppQuery,AppWebQuery>) Tap(Func<AppQuery,AppWebQuery>)

Performs a tap / touch gesture on the matched element. If multiple elements are matched, the first one will be used.

Tap(String) Tap(String) Tap(String)

Performs a tap / touch gesture on the matched element. If multiple elements are matched, the first one will be used.

Tap(Func<AppQuery,AppQuery>) Tap(Func<AppQuery,AppQuery>) Tap(Func<AppQuery,AppQuery>)

Performs a tap / touch gesture on the matched element. If multiple elements are matched, the first one will be used.

TapCoordinates(Single, Single) TapCoordinates(Single, Single) TapCoordinates(Single, Single)

Performs a tap / touch gesture on the given coordinates.

TouchAndHold(Func<AppQuery,AppQuery>) TouchAndHold(Func<AppQuery,AppQuery>) TouchAndHold(Func<AppQuery,AppQuery>)

Performs a continuous touch gesture on the matched element. If multiple elements are matched, the first one will be used.

TouchAndHold(String) TouchAndHold(String) TouchAndHold(String)

Performs a continuous touch gesture on the matched element. If multiple elements are matched, the first one will be used.

TouchAndHoldCoordinates(Single, Single) TouchAndHoldCoordinates(Single, Single) TouchAndHoldCoordinates(Single, Single)

Performs a continuous touch gesture on the given coordinates.

WaitFor(Func<Boolean>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitFor(Func<Boolean>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitFor(Func<Boolean>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Generic wait function that will repeatly call the predicate function until it returns true. Throws a TimeoutException if the predicate is not fullfilled within the time limit.

WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Wait function that will repeatly query the app until a matching element is found. Throws a TimeoutException if no element is found within the time limit.

WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Wait function that will repeatly query the app until a matching element is found. Throws a TimeoutException if no element is found within the time limit.

WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Wait function that will repeatly query the app until a matching element is found. Throws a TimeoutException if no element is found within the time limit.

WaitForNoElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForNoElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForNoElement(Func<AppQuery,AppWebQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Wait function that will repeatly query the app until a matching element is no longer found. Throws a TimeoutException if the element is visible at the end of the time limit.

WaitForNoElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForNoElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForNoElement(String, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Wait function that will repeatly query the app until a matching element is no longer found. Throws a TimeoutException if the element is visible at the end of the time limit.

WaitForNoElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForNoElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) WaitForNoElement(Func<AppQuery,AppQuery>, String, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>)

Wait function that will repeatly query the app until a matching element is no longer found. Throws a TimeoutException if the element is visible at the end of the time limit.

Explicit Interface Implementations

IApp.Device IApp.Device IApp.Device

Runtime information and control of the currently running device.

Applies to