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

[Question] Is it possible to select the browser for the Pick locator option of the VS Code plugin? #20096

Open
ferserc1 opened this issue Jan 13, 2023 · 2 comments

Comments

@ferserc1
Copy link

By default Chromium is used, but my project requires support for h.264 video codecs, so I can't use the pick locator option.

Is it possible to configure a different browser in the VisualStudio Code plugin to select a locator?

@debs-obrien
Copy link
Contributor

You can change the default profile in VS Code to run tests on specific browsers such as firefox or webkit or any profile that is set in your config. Then the pick locator will work based on the new default profile that you selected.

https://playwright.dev/docs/getting-started-vscode#run-tests-on-specific-browsers

Hope that helps

@debs-obrien
Copy link
Contributor

debs-obrien commented Jan 18, 2023

Steps in order to get pick locator to work are:

  • change the default profile in vscode to firefox for example
  • run the test with show browser checked - this will run the test on firefox browser
  • click pick locator and it will work on that open browser which is the firefox browser

Running in debug mode also works following the same steps above but changing the default debug profile in vscode and then running the test and clicking pick locator

What doesn't work is clicking pick locator without first running a test as this opens chrome only

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

No branches or pull requests

6 participants