commit | e229b32f40401ee45f972fef4c9010264d4a703e | [log] [tgz] |
---|---|---|
author | Marc Fisher <fisherii@google.com> | Wed Mar 25 13:28:07 2015 -0700 |
committer | Marc Fisher <fisherii@google.com> | Wed Mar 25 13:28:07 2015 -0700 |
tree | 253caf0c3017e69702b833fb2d78fe8627f1592b | |
parent | ff2ea50d4d6efd4cc7d8f6f2256ff59cc1aaf9d2 [diff] | |
parent | 37ec737f14295c14feaaf7cc4fa5700b84fad6c4 [diff] |
Merge pull request #48 from DrMarcII/master Version 0.10.0-pre.1
Provides WebDriver bindings for Dart. These use the WebDriver JSON interface, and as such, require the use of the WebDriver remote server.
For a nicer interface and better support consider using: https://github.com/google/dart-sync-webdriver
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 = buildDriver(...);
To run the tests, you need to first run selenium-server-standalone, which you can download from https://code.google.com/p/selenium/downloads.