Description
Thewait-for-text command waits until the specified text is detected on the screen. This is useful for ensuring that textual elements are present before proceeding with the next steps in a test.
Arguments
Example usage
Protips
- Use unique and specific text to improve detection accuracy.
- Adjust the
timeoutvalue based on the expected load time of the text to avoid unnecessary delays.
Gotchas
- If the text doesnβt appear within the specified
timeout, the command will fail. - Ensure the text matches exactly, as variations in font size, style, or screen resolution may affect detection accuracy.
The
wait-for-text command is ideal for synchronizing tests with textual elements that may take time to load.
