commit | 4c3b30c2f0538b93d97822762ac20705ea8a7e8b | [log] [tgz] |
---|---|---|
author | Travis Sanderson <travis.sanderson@webfilings.com> | Thu Jan 12 13:31:15 2017 -0600 |
committer | Marc Fisher <fisherii@google.com> | Thu Jan 12 11:31:15 2017 -0800 |
tree | 9541d356eef203d8b1ba567df53923584f12482c | |
parent | 27e2c77304c35a4be8aee6f63b33b31354c48e5c [diff] |
Revert "Enable generics for waitFor and require Dart 1.21+ in the pubspec SDK range" (#135)
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 ...