Get Questions
Yes/No Questions
Check, assert, or validate unknown states
When you need to answer simple yes/no questions—such as “Does the login form show an error?” or “Is a dialog displayed above the main application?”—you can use the agent.get()
method with a boolean response schema.
This approach is useful for quickly checking the state of your application and making assertions in your tests.
Examples:
Tip:
Use clear, unambiguous questions to ensure reliable yes/no answers from the agent.