Skip to content

storeText (UI Automation - Manipulation)

Compatible with:
  • Purpose
  • This command gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user.
  • Syntax
  • storeText(locator, variableName)
  • Target
  • locator - an element locator
  • Value
  • variableName
  • Return Value
  • The text of the element
 
 

Feedback and Knowledge Base