Interact with web elements using natural language
Element
class represents an element in the Dendrite browser environment. It wraps a Playwright Locator and provides methods for interacting with and manipulating elements in the browser.
str
: The outer HTML of the element.str
: A base64-encoded string of the JPEG image. Returns an empty string if the screenshot fails.expected_outcome
(Optional[str]): The expected outcome of the click action.*args
: Additional positional arguments.**kwargs
: Additional keyword arguments.InteractionResponse
: The response from the interaction.value
(str): The value to fill the element with.expected_outcome
(Optional[str]): The expected outcome of the fill action.*args
: Additional positional arguments.**kwargs
: Additional keyword arguments.InteractionResponse
: The response from the interaction.expected_outcome
(Optional[str]): The expected outcome of the hover action.*args
: Additional positional arguments.**kwargs
: Additional keyword arguments.InteractionResponse
: The response from the interaction.