Table of Contents
Use your browser search: CMD/CTRL + f
Actions
Name |
---|
click() productionMouse left-clicks/taps on the filtered element by moving the mouse cursor to the filtered element first. If you need a simple mouseleftclick/tap only, use Example:
|
execOnShell() productionExecutes a shell command on the device your AskUI Controller is connected to. Example:
|
expect() productionExpects a condition, for example, Use the structure Examples:
|
mouseDoubleLeftClick() productionDouble-clicks with left mouse key. If you need to move the mouse first, use Examples:
|
mouseDoubleMiddleClick() productionDouble-clicks with middle mouse key. If you need to move the mouse first, use Examples:
|
mouseDoubleRightClick() productionDouble-clicks with right mouse key. If you need to move the mouse first, use Examples:
|
mouseLeftClick() productionClicks with left mouse key. If you need to move the mouse first, use Examples:
|
mouseMiddleClick() productionClicks with middle mouse key. If you need to move the mouse first, use Examples:
|
mouseRightClick() productionClicks with right mouse key. If you need to move the mouse first, use Examples:
|
mouseToggleDown() productionToggles mouse down (Left mouse key/tap). This is the equivalent to mouse-left-press-and-hold. It holds the mouse button until the Example:
|
mouseToggleUp() productionToggles mouse up (Left mouse key/tap). This is the equivalent to releasing the pressing mouse left button. Often combined with Example:
|
moveMouse() productionMoves the mouse to the absolute x and y coordinates. If you want to move your mouse cursor to an element, use Example:
|
moveMouseRelatively() productionMoves the mouse from the current position (relative) in x and y direction. Example:
|
moveMouseRelativelyTo() productionMoves the mouse relatively to an element in the direction. This can be used when the mouse should not hover over an element anymore. Examples:
|
moveMouseTo() productionMove mouse over the filtered element. Example:
|
pressAndroidKey() productionPress one Android key like Examples:
|
pressAndroidThirdKey() productionPress three Android keys like
|
pressAndroidTwoKey() productionPress two Android keys like Examples:
|
pressKey() productionPress one keys like Operating system specific mappings:
Examples:
|
pressThreeKeys() productionPress three keys like Operating system specific mappings:
Examples:
|
pressTwoKeys() productionPress two keys like Operating system specific mappings:
|
scroll() productionScrolls based on the current mouse position in the x and y direction. Important: Mouse must be positioned in a scrollable area. macOS: May not work as expected! Example:
|
scrollInside() productionMoves mouse to the filtered element and scrolls in the x and y direction. macOS: May not work as expected! Example:
|
swipe() productionSwipe an element in the x and y direction. Holds the left mouse button down on Windows, Linux and macOS and drags the element. On touch devices it taps the element and then drags it. Example:
|
type() productionTypes a text at the current position. If you need to focus the element first, use typeIn() Note: In the current version it copies the text and pastes it. Examples:
|
typeIn() productionPuts the focus on the filtered element and types in the text. Note: In the current version it copies the text and pastes it. Examples:
|
Element-descriptions
Name |
---|
aiElement() productionDetects an AI Element created with the snipping workflow. Examples:
|
button() productionFilters for a UI element 'button'. Examples:
|
checkbox() productionFilters for a UI element 'checkbox'. |
container() productionFilters for a UI element 'container'. |
containsText() productionFilters for text containing the text provided as an argument. Examples:
|
customElement() productionFilters for a 'custom element', that is a UI element that is defined by providing an image and other parameters such as degree of rotation. It allows filtering for a UI element based on an image instead of using text or element descriptions like See the tutorial - Custom Element for more details. Example
Arguments
|
element() productionFilters for any UI element on the screen. Examples:
|
icon() productionFilters for a UI element 'icon'. You can combine it with the element-description 'withText()' to look for a specific icon. Examples:
Note: This is an alpha feature. The prediction of the icon name is sometimes unstable. Use custom elements as an alternative. |
image() productionFilters for a UI element 'image'. Examples:
|
matching() experimentalFilters elements based on a textual description. What Should I Write as Matching Text The text description inside the Important: Matching only returns the best matching element when you use it with A bit of playing around to find a matching description is sometimes needed:
For example, We also recommend to not restrict the type of element by using the general selector Examples:
|
otherElement() productionFilters for a UI element 'other element'. |
special() productionFilters special elements defined over a specifically trained custom element descriptor. Custom element descriptors are trained on your elements that were not detected with our default models. Please contact us for further details on how to do this. We are working on a solution to provide this in our User Portal. In the example below circle refers to a circle shaped icon with specific properties. Examples:
|
switch() productionFilters for a UI element 'switch'. |
table() productionFilters for a UI element 'table'. |
text() productionFilters for an UI element 'text'. Takes an optional parameter to filter for a specific text. See the examples below. See also the filters Examples:
|
textfield() productionFilters for a UI element 'textfield'. Examples:
|
withExactText() productionFilters for equal text. Note: This should be only used in cases where the similarity comparison of {@link FluentFilters.withText()} allows not for specific enough filtering (too many elements). Examples:
|
withText() productionFilters for similar -- meaning >70% similar -- text. Takes an optional parameter to specify the similarity. Usually you need the optional parameter for long texts you want to match precisely. We use RapidFuzz which calculates the similarity like this:
Examples:
|
withTextRegex() productionFilters for texts, which match the regex pattern. Examples:
|
Relations
Name |
---|
above() productionFilters for an element above another element. Takes an optional parameter Takes an optional parameter
Examples:
|
and() productionLogic and operator Examples:
Using only the element-description icon, the get will return both icons
You can combine element-descriptions with the
The get returns only the user icon although both elements are icons.
|
below() productionFilters for an element below another element. Takes an optional parameter Takes an optional parameter
Examples:
|
contains() productionFilters for an element containing another element. Example:
|
in() productionFilters for an element inside another element. Examples:
|
leftOf() productionFilters for an element left of another element. Takes an optional parameter Takes an optional parameter
Examples:
|
nearestTo() productionFilters for an element nearest to another element. Examples:
|
or() productionLogic or operator Examples:
In case, that your reference element can have multiple values, in the following example, the element right of the button can be either icon or text.
You can use the
Returns the same button for both cases
|
rightOf() productionFilters for an element right of another element. Takes an optional parameter Takes an optional parameter
Examples:
|
Checks
Name |
---|
exists() productionExpects that filtered element exists. Always use together with Note Throws an error and stops the execution when the element is not found. You can catch the error and decide what to do as in the examples below. Examples:
|
notExists() productionExpects that filtered element not exists. Always use together with Note Throws an error and stops the execution when the element is found. You can catch the error and decide what to do as in the examples below. Examples:
|
Getters
Name |
---|
get() productionReturns an array with all filtered elements. A detected element has the following properties:
Examples:
|
getAll() productionReturns an array with all detected elements. A detected element has the following properties:
Examples:
|