Using Mouse Input Emulation
Mouse input emulation allows you to emulate a user's interaction with physical objects, using the mouse.
This section shows you how to use mouse input emulation functions with GHTML physical object elements.
Generic HTML Elements
From version 7.7, the following GHTML mouse input emulation functions are supported:
-
Click on Point
-
Double Click on Point
-
Right Click on Point
These functions emulate mouse click interaction with GHTML physical object elements, and are less likely to be blocked by browsers than previously implemented functions, for example, Click.
For more information, see Functionality of Chrome Screen Elements.
To test the Click on Point function
-
Open a project in Real-Time Designer.
-
Capture a GHTML screen element, for example, navigate to and capture https://getbootstrap.com/docs/5.0/forms/form-control/#file-input.
For more information, see Capturing a Screen Element.
-
Run the project.
-
Open Monitor.
-
In Functions > Available Functions, select Click On Point.
-
In Parameters > Value, enter input values for x and y.
-
Click Invoke For example, a File Explorer window is displayed.