Get Text
AI-generatedSummary
Extract text content from a web page element identified by a CSS selector or XPath expression after navigating to the specified URL.
Inputs
- URL (required) — The web page URL to navigate to before extracting text.
- Selector Type (required) — Choose whether to use a CSS selector or XPath to identify the target element.
- CSS Selector — The CSS selector string to locate the element when Selector Type is 'css'.
- XPath — The XPath expression to locate the element when Selector Type is 'xpath'.
Output shape
a single JSON object containing the extracted text and the selector details
The output JSON includes the 'text' content (string or null if not found), the 'selectorType' used ('css' or 'xpath'), and the actual 'selector' string. The output is paired with the input item index. If the element is not found, 'text' may be null.