Skip to content

Formalize how to launch chrome and chromedriver in tests #187756

Open

Description

@nshahan

It's not entirely clear how to run chrome and chromedriver in an engine or framework test.

Chrome and chromedriver directories are both appended to the PATH:
https://cs.opensource.google/flutter/recipes/+/main:recipe_modules/flutter_deps/api.py;l=265-266;drc=de11b76f70be6b53ab5e49bdfda959c42aaf0aa3

The Chrome executable also gets set to an environment variable so it is easier to launch from tests:
https://cs.opensource.google/flutter/recipes/+/main:recipe_modules/flutter_deps/api.py;l=283-285;drc=de11b76f70be6b53ab5e49bdfda959c42aaf0aa3

It seems like it would be more reliable to explicitly launch chromedriver from an environment variable as well so we know exactly what is running.

cc @mdebbar

Activity

  1. added
    P2Important issues not at the top of the work list
    triaged-webTriaged by Web platform team
    on Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions