commit | 0045360a3b967f48853c5e25b2f34d5338ea6b2b | [log] [tgz] |
---|---|---|
author | staats-google <staats@google.com> | Sun Jun 25 17:06:32 2017 +0200 |
committer | GitHub <noreply@github.com> | Sun Jun 25 17:06:32 2017 +0200 |
tree | 42bbf04068a33fe67a1ec0aba155194a2c1f550e | |
parent | 096c41df77b48719deda3529464a7424a5ca885f [diff] |
Adds support W3C spec exception handling. (#171) * Refactor exception to allow JSON and W3C spec versions. Adds JSON version. * Adds exception type of W3C spec. * Extends w3c web element test to account for exception handling. * Dartfmt * Address pull request comments.
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 ...