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

Version 1 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

  • Through the action designer.

  • Or use smart search.


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 (и любое другое отрицательное значение) - 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

Unable to render {include} The included page could not be found.

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