Auto-Browse provides a set of core assertions for verifying element states and content. These natural language commands make it easy to validate your application’s behavior.
// Verify element visibilityawait auto("verify the login button is visible");await auto("check if error message is displayed");// Wait and verifyawait auto("wait for loading spinner to disappear");await auto("verify success message becomes visible");
// Exact text matchingawait auto('verify heading text is "Welcome"');await auto('check if error message says "Invalid input"');// Dynamic contentawait auto("verify message contains order number");await auto("check if username is displayed correctly");
// Button statesawait auto("verify submit button is enabled");await auto("check if save button is clickable");// Input field statesawait auto("verify email field is enabled");await auto("check if password field is active");
Verify if checkboxes or radio buttons are checked:
Copy
// Checkbox verificationawait auto('verify "Remember me" checkbox is checked');await auto('check if "Terms" box is selected');// Radio button verificationawait auto('verify "Express shipping" is selected');await auto('check if "Credit card" option is checked');
// Verify visibility and textawait auto("verify the login button is visible");await auto('verify heading text is "Welcome"');// Check element statesawait auto("verify submit button is enabled");await auto("check if save button is clickable");// Verify checkbox and radio statesawait auto('verify "Remember me" checkbox is checked');await auto('verify "Express shipping" is selected');// Wait and verify dynamic contentawait auto("wait for loading spinner to disappear");await auto("verify success message becomes visible");