commit | 45d8121ddd1763c85a323b19239ef054b1cb5da3 | [log] [tgz] |
---|---|---|
author | staats-google <staats@google.com> | Tue Jun 27 10:51:00 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue Jun 27 10:51:00 2017 +0200 |
tree | 3002378657a186060e824d2df81067a7ea175ac3 | |
parent | 0045360a3b967f48853c5e25b2f34d5338ea6b2b [diff] |
Adds logic to automatically infer specification type during WebDriver creation. (#172) * Adds automated spec inference ability during WebDriver creation. * Adds ability to define spec during WebDriver creation. Sets defaults to W3C for FireFox and JSONWire for Chrome. * Adds test for spec inference. Updates logic for reusing exisiting sessions for W3C spec. * Add error messages. * Updates spec inference test with different exception types.
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 = createDriver(...);
You can run the tests either with bazel (only supported on Linux).
bazel test ...