Touch Event
Please read the Terms of Use for Materials on ZennoLab
Table of contents
Description
This action allows you to emulate a Touch event (finger clicks).
How to add an action to a project?
Through the context menu Add Action → Tabs → Touch Event
Or use smart search .
Where can it be applied?
In cases where you need to emulate a phone or any other touchscreen device
In cases when you need to bring all actions as close as possible to human ones.
How to work with an action?
It is necessary to enable “Record” and “Touch” input mode in the browser window so that all actions executed in the browser are automatically recorded as Touch events.
Select an event
Touch - pressing (click / touch);
Long Touch - long clamping (right click)
Element search
Coordinates
Search for element by Coordinates.
Execute a Touch event within the specified coordinates.
Which tab is Active /First / By name / By number
Coordinates - you need to enter a range of X and Y coordinates. You can use project variables -
{-Variable.example_var-}
.
Usage example
Take as an example our resource where you can practice making simple clicks - https://lessons.zennolab.com/en/index . For implementation, we will use the Action Designer .
Go to the page in ProjectMaker'e.
We go down to the bottom and find the field for pressing and selecting the OS. Click on the place for the "checkmark" with the right mouse button and select "In the constructor of actions.
We select the action Rise , Event touch . Click on the Test button to check.
If the click was successful, then click Add to project
Examples of work in C#
Starting with version 7.1.4.0, a Touch property with a set of methods has been added to the CommandCenter.Tab. The Touch property contains basic methods: TouchStart, TouchEnd, TouchMove, TouchCancel, as well as complex methods with Touch overloads, SwipeIntoView, SwipeBetween and others.
Emulation of touch-pressing
Scrolling
Swipe right
Settings
Only part of the settings is displayed here. You can find a complete list in the documentation.
Demonstration project