GetElementsToolInput#

class langchain_community.tools.playwright.get_elements.GetElementsToolInput[source]#

Bases: BaseModel

Input for GetElementsTool.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

param attributes: List[str] [Optional]#

Set of attributes to retrieve for each element

param selector: str [Required]#

CSS selector, such as ‘*’, ‘div’, ‘p’, ‘a’, #id, .classname