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

Add GeckoDriver and EdgeDriver support to package:integration_test #90158

Open
johnpryan opened this issue Sep 15, 2021 · 1 comment
Open

Add GeckoDriver and EdgeDriver support to package:integration_test #90158

johnpryan opened this issue Sep 15, 2021 · 1 comment
Labels
a: tests "flutter test", flutter_test, or one of our tests c: proposal A detailed proposal for a change to Flutter f: integration_test The flutter/packages/integration_test plugin framework flutter/packages/flutter repository. See also f: labels. P3 Issues that are less important to the Flutter project team-framework Owned by Framework team triaged-framework Triaged by Framework team

Comments

@johnpryan
Copy link
Contributor

johnpryan commented Sep 15, 2021

It seems like ChromeDriver is the only member of the WebDriver family that package:integration_test supports. It would be great if we could support GeckoDriver and EdgeDriver too.

Steps to reproduce (GeckoDriver)

Install GeckoDriver and run in a separate shell or process:

geckodriver

output:

flutter drive \
  --driver=test_driver/integration_test.dart \
  --target=integration_test/app_test.dart \
  -d web-server
Running "flutter pub get" in integration_test_experiments...        590ms
Launching integration_test/app_test.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...         16.8s
integration_test/app_test.dart is being served at http://localhost:59592
The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or
Edge devices for an improved development workflow.
Unable to start WebDriver Session for Flutter for Web testing.
Make sure you have the correct WebDriver Server running at 4444.
Make sure the WebDriver Server matches option --browser-name.
For more information see: https://flutter.dev/docs/testing/integration-tests#running-in-a-browser
InvalidArgumentException (400): chromeOptions is not the name of a known capability or extension capability

Steps to reproduce (EdgeDriver)

Install EdgeDriver and run in a separate shell or process:

msedgedriver --port=4444

output:

flutter drive \
  --driver=test_driver/integration_test.dart \
  --target=integration_test/app_test.dart \
  -d web-server
Running "flutter pub get" in integration_test_experiments...        592ms
Launching integration_test/app_test.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...         16.9s
integration_test/app_test.dart is being served at http://localhost:59321
The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or
Edge devices for an improved development workflow.
Unable to start WebDriver Session for Flutter for Web testing.
Make sure you have the correct WebDriver Server running at 4444.
Make sure the WebDriver Server matches option --browser-name.
For more information see: https://flutter.dev/docs/testing/integration-tests#running-in-a-browser
InvalidArgumentException (400): invalid argument: unrecognized capability: chromeOptions

cc: @csells @dnfield

@johnpryan johnpryan added f: integration_test The flutter/packages/integration_test plugin P3 Issues that are less important to the Flutter project labels Sep 15, 2021
@TahaTesser TahaTesser added a: tests "flutter test", flutter_test, or one of our tests passed first triage c: proposal A detailed proposal for a change to Flutter labels Sep 21, 2021
@darshankawar darshankawar added the framework flutter/packages/flutter repository. See also f: labels. label Jun 3, 2022
@DragonMoffon
Copy link

DragonMoffon commented Feb 16, 2023

Has there been any progress towards this bug? This issue is still present on windows in 2023.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: tests "flutter test", flutter_test, or one of our tests c: proposal A detailed proposal for a change to Flutter f: integration_test The flutter/packages/integration_test plugin framework flutter/packages/flutter repository. See also f: labels. P3 Issues that are less important to the Flutter project team-framework Owned by Framework team triaged-framework Triaged by Framework team
Projects
None yet
Development

No branches or pull requests

5 participants