Bump the actions group across 1 directory with 2 updates Bumps the actions group with 2 updates in the / directory: [actions/checkout](https://github.com/actions/checkout) and [nanasess/setup-chromedriver](https://github.com/nanasess/setup-chromedriver). Updates `actions/checkout` from 6.0.2 to 6.0.3 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10) Updates `nanasess/setup-chromedriver` from 5c1220e385aca82610aa6fc7cdf1429306d50f9d to 72352455e266de370fb44658165d27923fb41a64 - [Release notes](https://github.com/nanasess/setup-chromedriver/releases) - [Commits](https://github.com/nanasess/setup-chromedriver/compare/5c1220e385aca82610aa6fc7cdf1429306d50f9d...72352455e266de370fb44658165d27923fb41a64) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: actions - dependency-name: nanasess/setup-chromedriver dependency-version: 72352455e266de370fb44658165d27923fb41a64 dependency-type: direct:production dependency-group: actions ... Signed-off-by: dependabot[bot] <support@github.com>
Provides WebDriver bindings for Dart. These use the WebDriver JSON interface, and as such, require the use of the WebDriver remote server.
In your Dart code, you can use:
import 'package:webdriver/io.dart'; WebDriver driver = createDriver(...);
This will use by default the asynchronous, JSON wire spec implementation. You now can also use a synchronous version of WebDriver:
import 'package:webdriver/sync_io.dart'; final driver = createDriver(...);
This version of WebDriver supports both the JSON wire spec and W3C spec, allowing use with modern versions of Firefox. This defaults to the JSON wire spec, but can also be configured to use the W3C spec or even to try and automatically infer the spec during session creation:
final w3cDriver = createDriver(spec: WebDriverSpec.W3c); // Use W3C spec. final anyDriver = createDriver(spec: WebDriverSpec.Auto); // Infer spec.
Unfortunately using bazel with Dart libraries and Dart WebDriver is not yet supported. We hope to add this at some point, but for now pub still works.
As a consequence, running tests is a bit more complicated than we'd like:
Launch a WebDriver binar(ies).
First, bring up chromedriver / geckodriver. Other conforming WebDriver binaries should work as well, but we test against these:
chromedriver --port=4444 --url-base=wd/hub --verbose geckodriver --port=4445
ChromeDriver is used to test our JSON wire spec implementation, and geckodriver is used to test our W3C spec implementation.
Synchronous tests are labeled as Chrome/Firefox. All async tests run exclusively against Chrome (as async, like ChromeDriver supports only the old JSON wire spec).
Run a test. All files suffixed with _test.dart are tests.
dart test test/path/to/the_test.dart -r expanded -p vm
Or to run all tests:
dart test -r expanded -p vm
You should probably go get a coffee or something, this is gonna take a while.