Adds rough W3C spec version. (#157)

* Add W3C spec.

* Add target_locator for w3c spec.

* Add timeouts for w3c spec.

* Add  window to w3c spec.

* Ran dartfmt.

* Update Window deprecations methods to reflect elements unsupported in W3C.

* Adds web_element to w3c spec.

* Add web_driver to w3c spec.

* Adds Firefox tests against w3c (not yet working).

* Refactor command_processor to be defined at driver creation time. Allows separate command processors for different specs.

* Refactor command_processor to concrete sync_http command processor and json_wire specific response processor.

* Run dartfmt.

* Fixed bad merge.

* Dartfmt.

* Working W3C spec response processor.

* Merge with master 2

* Dartfmt

* Update delete test to avoid accidently closing window

* Requests from review addressed.

* Remove no longer needed Firefox test, as we have real tests now.
15 files changed
tree: f5c275678b4f47c650353e37e40d8fa907de7a41
  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 ...