Adds support for creating Firefox instances for use in tests. (#153)

* Refactor tests to allow passing of WebDriver creation function. Allows same test to be used for Firefox and Chrome.

* Ran dartfmt over test dir.

* Adds Firefox test (not yet working) and option to run against Firefox.

* Create useful Firefox test.

* Dartfmt

* Add support for running Firefox in Travis.

* Update travis.yml to not specify entire firefox path.
4 files changed
tree: 913734ba3bf929dfae84d19748260170404f9f8f
  1. lib/
  2. test/
  3. tool/
  4. .gitignore
  5. .travis.yml
  6. analysis_options.yaml
  7. AUTHORS
  8. CHANGELOG.md
  9. CONTRIBUTING.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
README.md

webdriver

Build Status pub package

Provides WebDriver bindings for Dart. These use the WebDriver JSON interface, and as such, require the use of the WebDriver remote server.

Installing

  1. 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.

  2. 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
    
  3. Import it

    Now in your Dart code, you can use:

    import 'package:webdriver/io.dart';
    
    WebDriver driver = createDriver(...);
    

Testing

You can run the tests either with bazel (only supported on Linux).


bazel test ...