Skip to content

assignId (UI Automation - Manipulation)

Compatible with:
  • Purpose
  • This command temporarily sets the "id" attribute of the specified element, so you can locate it in the future using its ID rather than a slow/complicated XPath. This ID will disappear once the page is reloaded.
  • Syntax
  • assignId(locator, identifier)
  • Target
  • locator - an element locator pointing to an element
  • Value
  • identifier - a string to be used as the ID of the specified element
  • Return Value
  • N/A
 

Feedback and Knowledge Base