Skip to content

Click Element With Offset: CLICKWITHOFFSET

The Click Element With Offset action allows clicking on a specific part of a locator (Page and Element) by applying an X and Y offset. This is particularly useful for interacting with elements that require clicking a precise location within their boundaries.

Example: Suppose you are testing a custom UI button where the click must happen at an offset from its top-left corner.

Steps to configure:

  1. Select Click Element With Offset from the Action drop-down.
  2. Specify the Screen Name (e.g., “HomePage”).
  3. Set the Element Key to identify the button (e.g., “CustomButton”).
  4. Enter the offsets in the Parameter Section, such as [50, -10] (50px right and 10px above).
  5. Click Save.

Note: While the steps for adding an Action are identical in both views, the display of the steps changes:

scrn-click-element-with-offset-tabular-view
Tabular View
scrn-click-element-with-offset-card-view
Card View

Expected Outcome on Execution: 

  • The automation will click the specified location relative to the button’s top-left corner.
  • For example: With offsets [50, -10], the click occurs 50 pixels to the right and 10 pixels above the button’s top-left corner.

Back To Top