Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnpryan opened this issue Sep 16, 2022 · 0 comments
Open

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

johnpryan opened this issue Sep 16, 2022 · 0 comments

Comments

@johnpryan
Copy link

johnpryan commented Sep 16, 2022

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

  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();
  });

dart-lang/dart-pad#2360
dart-lang/dart-pad#2361

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant