Get candidate DOM elements for actions
observe()
is used to get a list of actions that can be taken on the current page. It’s useful for adding context to your planning step, or if you unsure of what page you’re on.
observe()
returns an array of objects, each with an XPath selector
and short description
.
If you are looking for a specific element, you can also pass in an instruction to observe:
returnAction
option to true. Here is a sample ObserveResult
:
dict
equivalent.ObserveOptions
true
.iframes: true
if content from iframes should be included in the observation.Promise<ObserveResult[]>
ObserveResult
object contains a selector
and description
.