AppiumWebDriver class
Methods
addEventListener (AsyncWebDriverListener listener )
→ void
Preferred method for registering listeners. Listeners are expected to
return a Future. Use new Future.value() for synchronous listeners.
back ()
→ Future <void >
Navigates backwards in the browser history, if possible.
captureScreenshot ()
→ Stream <int >
Take a screenshot of the current page as PNG as stream of uint8.
captureScreenshotAsBase64 ()
→ Future <String >
Take a screenshot of the current page as PNG and return it as
base64-encoded string.
captureScreenshotAsList ()
→ Future <List <int > >
Take a screenshot of the current page as PNG as list of uint8.
deleteRequest (String command )
→ Future
execute (String script , List args )
→ Future
Inject a snippet of JavaScript into the page for execution in the context
of the currently selected frame. The executed script is assumed to be
synchronous and the result of evaluating the script is returned.
executeAsync (String script , List args )
→ Future
Inject a snippet of JavaScript into the page for execution in the context
of the currently selected frame. The executed script is assumed to be
asynchronous and must signal that is done by invoking the provided
callback, which is always provided as the final argument to the function.
The value to this callback will be returned to the client.
executeDriver (String script , {String ? type , Duration ? timeout })
→ Future
findElement (AppiumBy by )
→ Future <AppiumWebElement >
Search for an element within the entire current page.
Throws NoSuchElementException if a matching element is not found.
findElements (AppiumBy by )
→ Stream <AppiumWebElement >
Search for multiple elements within the entire current page.
forward ()
→ Future <void >
Navigates forwards in the browser history, if possible.
get (dynamic url )
→ Future <void >
Navigates to the specified url
getElement (String elementId , [dynamic context , dynamic locator , dynamic index ])
→ AppiumWebElement
getRequest (String command )
→ Future
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postRequest (String command , [dynamic params ])
→ Future
quit ({bool closeSession = true })
→ Future <void >
Quits the browser.
refresh ()
→ Future <void >
Refreshes the current page.
toString ()
→ String
A string representation of this object.
override