Click on a browser screen position

With the XBrowser Engine 3.0, you can click on a certain point of the browser screen.

To do so, use the Module ClickOnScreen.

You can also use this Module to click on a screen position in the mobile browsers Chrome on Android and Safari on iOS. If you use this Module for mobile browsers, Tricentis Tosca closes the virtual keyboard.

The Module is part of the Standard subset. You can find it under Standard modules->TBox XEngines->Html.

Click on mobile screen positions

You can also perform a click (a tap gesture) on a certain point of the mobile device screen. To do so, use the Click On Screen Module of the Mobile Engine 3.0 (see chapter "Click on a screen position").

Prerequisites to screen clicks

If you want to click on a screen, your TestCase must meet the following requirements:

In this example, the XBrowser Engine 3.0 performs the following actions:

  • It opens the URL http://sampleapp.tricentis.com/101/index.php. This browser tab has the caption Tricentis Vehicle Insurance.

  • It performs a click of 30% along the X-axis and 70% along the Y-axis, calculated from the top left corner of the screen.

Click on a certain screen position