Rayrun
← Back to Discord Forum

playwright 1.35.1- getting error on ci jenkins job

Hi All, i got this error on my ci ( jenkins ) job-
Error: browserType.launch: Chromium distribution 'chrome' is not found at /opt/google/chrome/chrome Run "npx playwright install chrome"

i use this command: npx playwright-core install

i use the latest playwright version and the browsers got installed on my jenkins machine.

can someone tell me why i'm getting this error? @mxschmitt @refactoreric

This thread is trying to answer question "Why is the user getting an error while running a Jenkins CI job with Playwright 1.35.1?"

4 replies

NOTE: when i tried 'npx playwright install chrome' - i got this error: E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 10067 (unattended-upgr) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? Failed to install browsers Error: Failed to install chrome

Looks like the error is showing whats happening, some other process is using apt currently.

@mxschmitt i'm looking into it. But when using 'npx playwright-core install' i did not get this error. so i had to use "npx playwright install chrome"

well it seems that the test run after the apt was free. i did not have to use the Run "npx playwright install chrome"

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 [email protected].