commit | 14d17e96247ddb084eb78ad4e6893cba0691388f | [log] [tgz] |
---|---|---|
author | Marc Fisher II <fisherii@google.com> | Wed Apr 29 10:53:30 2015 -0700 |
committer | Marc Fisher II <fisherii@google.com> | Wed Apr 29 10:53:30 2015 -0700 |
tree | c52c4fc145063b397e0eaedc654feb25513f9f5f | |
parent | 2b53cd1f4c367d8baa7f974f477985163085efff [diff] |
Changes to travis config to remove sudo requirement and to add support for pub run test -p chrome
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 = buildDriver(...);
To run the tests, you need to first run selenium-server-standalone, which you can download from http://www.seleniumhq.org/download/ or http://selenium-release.storage.googleapis.com/index.html.
If you're on Mac and use homebrew you can install the required components via
brew install selenium-server-standalone
brew install chromedriver