find_element_info
Find one web element using a CSS selector or visible text, then return its tag name, text content, and outer HTML for quick inspection or data extraction.
Instructions
Find one element and return its tag name, text, and outer HTML. Args: selector: CSS selector, or text to search for (CDP mode can match elements by visible text as well as by selector). best_match: When matching by text and multiple elements qualify, pick the one whose text length is closest to the search text. timeout: Seconds to wait for the element to appear.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| selector | Yes | ||
| best_match | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |