skip to Main Content

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?

2

Answers


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

    enter image description here

    Login or Signup to reply.
  2. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search