ReplayDriver class abstract
Testability seam for RecipeReplayer: every WebView/cookie interaction goes through this interface so replay logic can be unit-tested without a WebView.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evaluateJavascript(
String source) → Future - Evaluates JavaScript in the current page.
-
getHtml(
) → Future< String?> - The current page HTML, if any.
-
getUrl(
) → Future< String?> - The current page URL, if any.
-
loadUrl(
String url) → Future< void> -
Navigates the WebView to
url. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restoreCookies(
List< CookieEntry> cookies, String entryUrl) → Future<void> - Restores the recorded cookies (before the first loadUrl).
-
toString(
) → String -
A string representation of this object.
inherited
-
waitForLoad(
Duration timeout) → Future< void> -
Waits until the current navigation finishes loading.
Must complete (normally or by throwing) within
timeout.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited