commit | 473f7e8c8b711fcfaa47a284a10ffe6148a9c56c | [log] [tgz] |
---|---|---|
author | Marc Fisher II <fisherii@google.com> | Mon Apr 06 14:00:17 2015 -0700 |
committer | Marc Fisher II <fisherii@google.com> | Mon Apr 06 14:00:17 2015 -0700 |
tree | 0cf975fd71ec9b1114f70162b3d5c3c0b3b64214 | |
parent | bdb7a550fb06457032df0fa463ab21142974d6fc [diff] |
Added close() method to CommandProcessor that gets called by WebDriver.quit(). Ensure that HttpClient in _IOCommandProcessor gets called. Add fromExistingSession() functions to allow creation of WebDriver instances connected to existing sessions. Incremented prerelease version number.
Provides WebDriver bindings for Dart. These use the WebDriver JSON interface, and as such, require the use of the WebDriver remote server.
Depend on it
Add this to your package's pubspec.yaml file:
dependencies: webdriver: any
If your package is an application package you should use any as the version constraint.
Install it
If you're using the Dart Editor, choose:
Menu > Tools > Pub Install
Or if you want to install from the command line, run:
$ pub install
Import it
Now in your Dart code, you can use:
import 'package:webdriver/io.dart'; WebDriver driver = buildDriver(...);
To run the tests, you need to first run selenium-server-standalone, which you can download from https://code.google.com/p/selenium/downloads.