commit | 96b6ae06d57c328b3a9de158be4420ec742008bc | [log] [tgz] |
---|---|---|
author | staats-google <staats@google.com> | Fri Jun 16 16:51:25 2017 +0200 |
committer | GitHub <noreply@github.com> | Fri Jun 16 16:51:25 2017 +0200 |
tree | e538739b90492cf478ac01b532c314488c3afcc0 | |
parent | 4073c73610eda6d3a3ad42e5ef6a4c9e75158257 [diff] |
Updates W3C spec sufficiently to allow web_driver_test.dart to pass for W3C/geckodriver. (#160) * Refactor command_processor to be defined at driver creation time. Allows separate command processors for different specs. * Add Firefox WebDriver test * 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. * Refactors out element finder logic for WebDriver and WebElement to common location for W3C spec. * Dartfmt. * Fixed about half of web_driver_tests * All web_driver_test tests pass on Chrome and Firefox (JSON and W3C). * Drop print * Dartfmt
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 ...