Locating elements
Include visual attributes
Revyl AI understands visual characteristics such as colors, shapes, sizes, and positions. You can specify elements like “the red ‘Cancel’ button”, “the thumbs up icon”, or “the hamburger menu beside the logo” for more precise targeting.
Add positional insights
Revyl’s AI effectively identifies elements by name or visible text, but when multiple identical elements exist, provide additional context for precise targeting. Use location references like “below the ‘Introduction’ header” or “beside the ‘Back’ button” if these positions will remain consistent. You can specify containment with “inside” (e.g., “the ‘Submit’ button inside the user dialog”), position with “nth” (e.g., “the second ‘Submit’ button”), or proximity with “closest” (e.g., “the closest ‘Submit’ button to the ‘Username’ input”).
Exclude specific elements
Tell Revyl AI which elements to avoid when making selections. For example: “Select the ‘Submit’ button in the confirm modal, not any buttons within the form.” While this approach works, using unique identifiers like aria-labels provides more reliable element targeting.