Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Table of contents

 Click here to expand the table of contents

Description

This action is used when you need to click on an element (touch) or press with a short delay in the pressed state (long touch).

How to add an action to a project?

  • Via context menu Add Action -> Android -> Rise Event


What is it used for?

  • touch is most often used for clicks on buttons, menu items, checkboxes

  • long touch is usually used to call an additional menu for elements

Main Tab

Select an event

Choosing what exactly needs to be done with the element. There are two events available - touch and long touch

Search for an element

Before you interact with the element it must be found.


The search is carried out by attributes of the element.

Conditions

  1. Group - is the priority of this condition. The higher this number is the priority lower. If it was not possible to find an element by condition with the highest priority, then we move to the condition with the next priority and so while the element is not found, or the search conditions will not end. You can add several conditions with one priority, then the search will be made on all conditions with the same priority simultaneously.

  2. Attribute - an attribute of an element for which is searched.

  3. Search type:
    a) text - search for full or partial text entry;

    b) notext - search for items in which there will be no specified text;

    c) regexp - search using a Regexp tester;

  4. Value - attribute value.

  5. Match # - the sequence number of the found item (numbering from scratch!).

Delete condition

To delete the search condition, you must click on the left mouse button on the left side of condition (on the screenshot above is highlighted in blue) and click the Delete button on the keyboard.

Multiple сondition

To search the item, several conditions can be used simultaneously.

It is always important to try to select the conditions in such a way that only one element remained as a result of the search.

Offset

Center - [long] touch will be executed exactly in the center of the element.
Coordinates - here you can specify the coordinates inside the found element, where the [long] touch will be made.

Examples:

  • 0;0 - the upper left corner of the element.

  • 99;49- click on 100th pixel horizontally and 50th pixel vertically

  • -1;-1 (and any other negative value) - click on the center of the element.

    • -1; 9- horizontally - the center of the element, vertically - the 10th pixel from the top.

    • 0;-26;- horizontally, the click will be made at the leftmost point of the element, and vertically - in the center of the element.

    • -2000; -3000- click on the center of the element.

  • if a value is set that exceeds the height or width of the element, then it will be reduced to the actual height/width of the element.

More tab

Wait before execution (sec.)

How many seconds will expect before execution (Random value in the range between from and to).

Wait no longer than (sec.)

If after the specified time the element does not appear, the action will complete the work with an error.


Usage example

This action will be used every time you need to click on one or another element. For example, you need to click on the "Settings" shortcut on the main screen of the emulator. To do this, right-click on it => To the action designer (1), select the “Rise” action (2), the “touch” event and then “Add to project”.

 Screenshot

  • No labels