google / google/webdriver.dart

Need to add a delay between calls to `createDriver` and `driver.get`

Open
#253 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
142
Forks
49
Avg merge
4h 22m
Merged PRs (30d)
4

Description

In DartPad, webdriver tests are failing unless an artificial delay is added:

```dart
setUp(() async {
// Connect to it with the webdriver package
driver = await createDriver(
uri: Uri.parse('http://localhost:4444/wd/hub/'),
desired: Capabilities.chrome);

await Future.delayed(Duration(milliseconds: 2000));

// Go to your page
await driver.get('http://localhost:8000/');
await waitForPageToStabilize();
});
```

https://github.com/dart-lang/dart-pad/issues/2360
https://github.com/dart-lang/dart-pad/pull/2361

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.