Accepts the alert in a cross-platform way. For example, this would press the "OK" or "Yes" button.
Dismisses the alert in a cross-platform way. For example, this would press the "Close", "Cancel" or "No" button.
Returns the text of an alert.
whether to wait for an alert to appear or not
the text of the alert or {@code null} if no alert is displayed
Returns whether or not a native alert is shown.
Waits for a native alert to be shown.
Returns true if the specified app state is met.
which state to check for
If set to true, will wait for the app to be running.
ID of the app (Android)
bundle id of the app (iOS)
how long to wait until the state is met
Returns true if the specified app state is met for Safari.
Which state should be checked for
If set to true, will wait for the app to be running.
Opens the app.
whether or not the start of the app should be awaited
ID of the app (Android)
bundle id of the app (iOS)
Opens Safari and waits until it is running.
Returns the state of the app.
ID of the app (Android)
bundle id of the app (iOS)
the current app's running state
Opens the app with the specified deeplink path routing to the view that should be shown.
to the deeplink
ID of the app (Android)
bundle id of the app (iOS)
how long to wait in each step of the process until the deeplink has been opened
Returns whether the test is currently running on an iOS Simulator or not.
Returns the accessibilityId of an element.
of which to get the accessibilityId
the accessibilityId of {@code element}
Removes, if present, the ~ character in the beginning of a string. This is useful in cases where the accessibilityId can be passed in by the developer, but needs to be without a ~ in front. This makes sure even if the accessibilityId contains a ~ that is not allowed, that it's properly removed, providing greater convenience.
Check if an element is visible and if not scroll down a portion of the screen to check if it visible after a x amount of scrolls.
to check for if displayed
maximum amount of scrolls to perform until the element is visible
current amount of scrolls
Swipes from coordinate (from) to the new coordinate (to). The given coordinates are in pixels.
like for example { x: 50, y: 50 }
like for example { x: 25, y: 25 }
Swipe down based on a percentage.
between 0 and 1
Swipes left based on a percentage.
between 0 and 1
Swipes left on the {@code element}.
to be swiped on
Swipes from coordinate (from) to the new coordinate (to). The given coordinates are percentages of the screen.
like for example { x: 50, y: 50 }
like for example { x: 25, y: 25 }
Swipes right based on a percentage.
between 0 and 1
Swipes right on the {@code element}.
to be swiped on
Swipes up based on a percentage.
between 0 and 1
Selects one element on mobile platforms in a cross-platform way. Works in the same way as {@link $} in WebdriverIO. Uses {@code UiSelector} on Android and {@code ios predicate} on iOS.
to use
Selects all elements on mobile platforms in a cross-platform way. Works in the same way as {@link $$} in WebdriverIO. Uses {@code UiSelector} on Android and {@code ios predicate} on iOS.
to use
Generated using TypeDoc