Xamarin.UITest.iOS.iOSApp Members

The members of Xamarin.UITest.iOS.iOSApp are listed below.

See Also: Inherited members from System.Object

Public Constructors

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

Public Properties

[read-only]
ConfigiOSConfig. Obsolete, use Device instead. Contains runtime information about the currently running device.
[read-only]
DeviceiOSDevice. Runtime information and control of the currently running device.
[read-only]
PrintXamarin.UITest.Queries.AppPrintHelper. Contains helper methods for outputting the result of queries instead of resorting to Console.
[read-only]
TestServerXamarin.UITest.ITestServer. Allows HTTP access to the test server running on the device.

Public Methods

Back()
Navigate back on the device.
ClearText()
Clears text from the currently focused element.
ClearText(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Clears text from a matching element that supports it.
DoubleTap(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs two quick tap / touch gestures on the matched element. If multiple elements are matched, the first one will be used.
DoubleTapCoordinates(float, float)
Performs a quick double tap / touch gesture on the given coordinates.
DragCoordinates(float, float, float, float)
Performs a continuous drag gesture between 2 points.
DragCoordinates(float, float, float, float, Nullable<TimeSpan>)
Performs a continuous drag gesture between 2 points.
EnterText(string)
Enters text into the currently focused element. Will fail if no keyboard is visible.
EnterText(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>, string)
Enters text into a matching element that supports it.
EnterText(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery>, string)
Enters text into a matching element that supports it.
Flash(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>) : Xamarin.UITest.Queries.AppResult[]
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.
FlickCoordinates(float, float, float, float)
Performs a quick continuous flick gesture between 2 points.
Invoke(string, object) : object
Invokes a method on the apps AppDelegate. The signature should be of the form:

Example

(NSString *) calabashBackdoor:(NSString *)aIgnorable;
or if you want to pass parameters:

Example

(NSString *) calabashBackdoor:(NSDictionary *)params;
InvokeUia(string) : object
Invokes raw UIA javascript.
PinchToZoomIn(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.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(float, float, Nullable<TimeSpan>)
Performs a pinch gestures to zoom the view in on the given coordinates.
PinchToZoomOut(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.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.
PinchToZoomOutCoordinates(float, float, Nullable<TimeSpan>)
Performs a pinch gestures to zoom the view in on the given coordinates.
PressEnter()
Presses the enter key in the app.
PressVolumeDown()
Presses the volume down button on the device.
PressVolumeUp()
Presses the volume up button on the device.
Query(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>) : Xamarin.UITest.Queries.AppResult[]
Queries view objects using the fluent API. Defaults to only return view objects that are visible.
Query(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery>) : Xamarin.UITest.Queries.AppWebResult[]
Queries web view objects using the fluent API. Defaults to only return view objects that are visible.
Query(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.InvokeJSAppQuery>) : string[]
Queries view objects using the fluent API. Defaults to only return view objects that are visible.
Query<T>(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppTypedSelector<T>>) : T[]
Queries properties on view objects using the fluent API.
Repl()
Starts an interactive REPL (Read-Eval-Print-Loop) for app exploration and pauses test execution until it is closed.
Screenshot(string) : System.IO.FileInfo
Takes a screenshot of the app in it's current state. This is used to denote test steps in the Xamarin Test Cloud.
ScrollDown()
Performs a touch gesture that scrolls down.
ScrollDown(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs a touch gesture that scrolls down on the matching element. If multiple elements are matched, the first one will be used.
ScrollUp()
Performs a touch gesture that scrolls up.
ScrollUp(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs a touch gesture that scrolls up on the matching element. If multiple elements are matched, the first one will be used.
SendAppToBackground(TimeSpan)
Sends the app to background for the specified time span.
SetOrientationLandscape()
Changes the device orientation to landscape mode.
SetOrientationPortrait()
Changes the device orientation to portrait mode.
SwipeLeft()
Performs a left to right swipe gesture.
SwipeLeft(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs a left to right swipe gesture on the matching element. If multiple elements are matched, the first one will be used.
SwipeRight()
Performs a right to left swipe gesture.
SwipeRight(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs a right to left swipe gesture on the matching element. If multiple elements are matched, the first one will be used.
Tap(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs a tap / touch gesture on the matched element. If multiple elements are matched, the first one will be used.
Tap(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery>)
Performs a tap / touch gesture on the matched element. If multiple elements are matched, the first one will be used.
TapCoordinates(float, float)
Performs a tap / touch gesture on the given coordinates.
TouchAndHold(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs a continuous touch gesture on the matched element. If multiple elements are matched, the first one will be used.
TouchAndHoldCoordinates(float, float)
Performs a continuous touch gesture on the given coordinates.
TwoFingerTap(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>)
Performs a tap / touch gestures with 2 fingers on the matched element. If multiple elements are matched, the first one will be used.
TwoFingerTapCoordinates(float, float)
Performs a tap / touch gesture with 2 fingers on the given coordinates.
WaitFor(Func<bool>, 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<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppQuery>, string, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) : Xamarin.UITest.Queries.AppResult[]
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<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.AppWebQuery>, string, Nullable<TimeSpan>, Nullable<TimeSpan>, Nullable<TimeSpan>) : Xamarin.UITest.Queries.AppWebResult[]
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<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.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.
WaitForNoElement(Func<Xamarin.UITest.Queries.AppQuery, Xamarin.UITest.Queries.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.

Explicitly Implemented Interface Members

[read-only]
Xamarin.UITest.IApp.DeviceXamarin.UITest.IDevice. Runtime information and control of the currently running device.