Skip to content

waitForTextPresent (UI Automation - Synchronization)

Compatible with:
  • Purpose
  • This command waits for a specific text pattern that appears somewhere on the rendered page.
  • Syntax
  • waitForTextPresent(pattern)
  • Target
  • pattern - the text 
  • Value
  • N/A
  • Return Value
  • true if the pattern matches the text, false otherwise
Tips, Tricks, Gotchas & Best Practices:
  • This command checks for the text pattern in the DOM level and will not wait for the text to load on UI
  • If you intend to check for value displayed in the UI, waitForText command is recommended
 

Feedback and Knowledge Base