Capture Text
Captures text of the element described
Last updated
Captures text of the element described
Last updated
string
required
Description of the element you want to capture text. Refer to the Locate Elements page.
string
required
name of the variable for later use.
Write a prompt like "second item in search results" to identify and capture text from the specified element.
Assign a variable name for the captured text (e.g., "var-search-second-item").
Using Captured Variables:
Use the variable in any prompt for actions like Tap, Assert or Enter Text:
Tap: Write a prompt like "{{var-search-second-item}} in search results" to tap on the element containing the captured text.
Assert: Write a prompt like "the page is about {{var-search-second-item}}" to assert that the page content matches the captured text.