SimpleSpidrPage class
Basic implementation of SpidrPage used for stubs and fallback document wrappers.
Constructors
- SimpleSpidrPage(SpidrResponse response, [SpidrElement? root])
- Creates a new SimpleSpidrPage.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- html → String
-
The raw HTML contents of the page source.
no setterinherited
- response → SpidrResponse
-
The network response that was used to load this page.
final
- root → SpidrElement
-
The root document element of the page (typically the '' element).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → Uri
-
The current URL of the page.
no setterinherited
Methods
-
adaptive(
String selector) → Future< SpidrElement?> -
Locates elements using self-healing capabilities if the standard selector fails.
Resolves the selector based on historical visual, behavioral, and structural fingerprints.
override
-
css(
String selector) → SpidrElement? -
Evaluates a CSS selector against the root element and returns the first match.
inherited
-
cssAll(
String selector) → List< SpidrElement> -
Evaluates a CSS selector against the root element and returns all matching elements.
inherited
-
extract<
T> ({T fromJson(Map< String, dynamic> json)?, SchemaConfig? schema}) → Future<T> -
Automatically extracts structured, typed data schemas from the page.
Leverages dynamic AST maps or registered AI models to construct instance of
T.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
{Duration? timeout, String? waitSelector, List< String> scriptTriggers = const []}) → Future<SpidrPage> -
Promotes a static page into a fully rendered dynamic page by executing
its JavaScript inside a headless browser engine.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
xpath(
String expression) → SpidrElement? -
Evaluates an XPath expression against the root element and returns the first match.
inherited
-
xpathAll(
String expression) → List< SpidrElement> -
Evaluates an XPath expression against the root element and returns all matching elements.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited