Chrome on my jenkins sits here: PLAYWRIGHT_BROWSERS_PATH='/opt/google/chrome'
But what actually gets used by playwright is this: Error: browserType.launch: Executable doesn't exist at /opt/google/chrome/chromium-1067/chrome-linux/chrome
Am I using it wrong? Why can't I point playwright to my browser instance on the jenkins? Or what's the use of that feature anyways, if I can't use chrome from the place where it is actually installed?
This thread is trying to answer question "How to use a custom Chrome installation on Jenkins with Playwright?"
you might be looking for executablePath https://playwright.dev/docs/api/class-browsertype#browser-type-executable-path
you can just do channel: "chrome" in your playwright.config file and it should just work. See here: https://playwright.dev/docs/api/class-testoptions#test-options-channel This will automatically find your local installed Chrome.
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 [email protected].