Skip to main content
Browser

Click with XPath

Click with XPath

Clicks an element on a web page using an XPath locator — an alternative to the CSS selector for more complicated page structures.

Tip

For most cases, prefer Click with a CSS selector: it is simpler and faster. Reach for this one only when a CSS selector cannot identify the element you want.


Options

Browser or page ID

The browser, tab or iframe opening action where the click happens.

XPath locator

The XPath expression identifying the element to click, //button[@id='btnSubmit'] for example.

Returns

This action has no returns.

Rules and conditions

  • Browser or page ID and XPath locator are both required.
  • The XPath locator has to be a valid expression that uniquely identifies the element you want.
  • If more than one element matches the XPath, the robot clicks the first found.
  • If no element is found within the timeout, the action ends in an error.