commit | e97f7525318e2b2aec5a82c14ba9e14cc579fefc | [log] [tgz] |
---|---|---|
author | staats-google <staats@google.com> | Mon Apr 10 18:07:15 2017 +0200 |
committer | GitHub <noreply@github.com> | Mon Apr 10 18:07:15 2017 +0200 |
tree | d7b7d0b2bad41ce9eb31a3b0e8d94fe95e33a3bb | |
parent | d020c421d51e12519904b2a8d14741e82785f114 [diff] |
Adds null check for status before checking status code. Avoids throwing exceptions if status is not defined. (#145) * Adds check for status in responseMap as part of error checking. * formats file
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 ...