parse() uses OmniParser v2. It works from the screenshot alone, so it doesn’t need a DOM or accessibility tree.
To act on one specific element, use find() instead. Use parse() when you need an inventory of the whole screen.
parse() requires an Enterprise or self-hosted plan.Signature
Parameters
None.parse() analyzes the screen as it is when you call it.
Returns
object
Errors
parse() throws if the screen analysis fails. The error message comes from the TestDriver API.
Examples
List what’s on screen
Find the clickable elements
Click an element by its text
find() for clicks.
See what was detected
Complete example
tests/login-form.test.mjs

