For AI agents: a documentation index is available at /llms.txt
Skip to main content

TextOptions

Properties

PropertyTypeDescription
clean?CleanInputSpecifies conditions for "cleaning" the returned text, useful for minimizing the amount of markup returned for cases like LLMs and more. See nested options for parameters.
selector?stringThe DOM selector of the given element you want to return the text of Default "html"
timeout?numberThe maximum amount of time, in milliseconds, to wait for the selector to appear, overriding any defaults. Default timeout is 30 seconds, or 30000.
visible?booleanWhether or not to return the text content of the element only if it's visible Default false