Shuji
Shuji

Reputation: 1

Where can I configure the browser behavior of Playwright in VSCode?

I'm starting to use Playwright with VSCode. I have it running from Test in VSCode, but the browser is not showing up. I would like to get the browser to show up, but where can I configure the browser behavior?

Upvotes: 0

Views: 1640

Answers (2)

mindbraker
mindbraker

Reputation: 31

Not sure exactly if by "browser to show up" you refer at the fact that you need the browser to not run in headless mode.

There are two possible ways:

  1. Install Playwright Test for VSCode as suggest by @MingJie-MSFT. You'll have a Show browser checkbox there in case you want to run your tests headless or not
  2. In the config file, for use, add:

headless: false

Example for both options

Upvotes: 2

MingJie-MSFT
MingJie-MSFT

Reputation: 9357

Please install Playwright Test for VSCode extension which automatically detects if you have Playwright installed and loads the browsers.

enter image description here

Upvotes: 0

Related Questions