GithubHelp home page GithubHelp logo

[Bug]: Running Chrome using `launchOptions` will lose out to `PLAYWRIGHT_BROWSERS_PATH` under Bazel if `npx playwright install` run about playwright HOT 4 CLOSED

Aghassi avatar Aghassi commented on August 16, 2024
[Bug]: Running Chrome using `launchOptions` will lose out to `PLAYWRIGHT_BROWSERS_PATH` under Bazel if `npx playwright install` run

from playwright.

Comments (4)

pavelfeldman avatar pavelfeldman commented on August 16, 2024

What is CHROMIUM_BIN? It is not a part of Playwright or something Playwright supports. You should not call npx playwright install if you are bringing your own browser.

from playwright.

Aghassi avatar Aghassi commented on August 16, 2024

@pavelfeldman I realized I mispoke in my initial issue. I appologize.

The issue is that passing the following

          launchOptions: {
            executablePath: process.env.CHROMIUM_BIN,
          },

does not take precedence over playwright_browser_path when I expect it would.

I was using this env and type up my issue wrong. Let me adjust the issue name and context

from playwright.

pavelfeldman avatar pavelfeldman commented on August 16, 2024

What you say below is:

"At runtime, when launching Chromium, use executable located at <CHROMIUM_BIN>."

launchOptions: {
  executablePath: process.env.CHROMIUM_BIN,
},

does not take precedence over playwright_browser_path when I expect it would.

It does take precedence over PLAYWRIGHT_BROWSERS_PATH - the browser from CHROMIUM_BIN will be launched, regardless of the location of the browser registry.

from playwright.

pavelfeldman avatar pavelfeldman commented on August 16, 2024

Closing as per above, please feel free to open a new issue if this does not cover your use case.

from playwright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.