commit | 096c41df77b48719deda3529464a7424a5ca885f | [log] [tgz] |
---|---|---|
author | staats-google <staats@google.com> | Tue Jun 20 12:56:28 2017 +0200 |
committer | GitHub <noreply@github.com> | Tue Jun 20 12:56:28 2017 +0200 |
tree | 2d52148c3c457d759bbcffd01695ee0673e8c2a7 | |
parent | a38a132fbfebd9a35f9e45db33ace033b0496726 [diff] |
Updates target locator test + W3c to pass on Firefox. Updates documentation to reflect common functionality. (#168) * Adds W3c spec target locator test. Updates implementation to reference W3c web element identifier. Updates documentation to match common functionality across specs. * Dartfmt. * Adds documentation of magic element constants. Updates target locator test to test passing of arbitrary values. * 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 ...