commit | e288bfbcd12e191b43d56fd21f1b55f228734251 | [log] [tgz] |
---|---|---|
author | staats-google <staats@google.com> | Thu Jun 15 00:30:41 2017 +0200 |
committer | GitHub <noreply@github.com> | Thu Jun 15 00:30:41 2017 +0200 |
tree | f169946fdc1bdc3d1f3e334841a72b0a78f09912 | |
parent | f27030744fe07fb3e3dc14da2126227bc28c59b3 [diff] |
Refactor By toJson() to be spec-dependent. (#158) * Refactor command_processor to be defined at driver creation time. Allows separate command processors for different specs. * Update By to not override toJson directly. Updated json_wire_spec to do this. * Adds W3C complaint massage to JSON request params * Dartfmt. * Add by JSON converstion to web_element.
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 ...