Rayrun
โ† Back to Discord Forum

Global Configuration Browser

I was looking at the documentation for global configuration, it looks like the browser is set with chromium.launch(). Is it possible to make it launch with a browser that's chosen from, let's say debugger choosing Firefox, instead of forcing Chromium?

image.png

This thread is trying to answer question "Is it possible to configure the Global Configuration Browser to launch with a browser of choice, such as Firefox, instead of the default Chromium?"

4 replies

Hey Daniel ๐Ÿ‘‹ ,

Do you mean like configuring it from the playwright.config.ts ? Like this

{
      name: 'chromium',
      use: { ...devices['Desktop Chrome'], 
      launchOptions: {
        args: [],
        slowMo: 500
        },
      },
    },
    {
      name: 'firefox',
      use: { ...devices['Desktop Firefox']
      , 
      launchOptions: {
        args: [], 
        slowMo: 500
        },
      },
    },
    {
      name: 'webkit',
      use: { ...devices['Desktop Safari'], 
      launchOptions: {
        args: [], 
        slowMo: 500
        },
       },
    },```
So it runs against those browsers without having to specify a individual one?

Hey! I meant more as inside of the globalSetup function! But I think I found a way to get this to work via fixtures atm ๐Ÿ™‚

Nice ๐Ÿ‘

dirvinautomation_16636

@garonx I had a similar question recently that I didn't ask here. Would mind sharing your solution?

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.