admin管理员组文章数量:1399499
First I run pnpm exec playwright install --with-deps
which seems to install all
browsers
But when I run the tests, I get a set of errors from Playwright saying it can't find Chrome, Webkit nor Firefox.
the errors all look like this, only the referenced browser and its path changes:
It seems like Playwright is looking at the wrong paths.
e.g For Chromium the install path is /home/runner/.cache/ms-playwright/chromium-1134
,
but it seems like Playwright is looking for it on the path /home/runner/.cache/ms-playwright/chromium_headless_shell-1161/chrome-linux/headless_shell
Any ideas on how to fix this?
btw: When running pnpm exec playwright install --with-deps
this is logged in the Github Actions run: Switching to root user to install dependencies...
.
First I run pnpm exec playwright install --with-deps
which seems to install all
browsers
But when I run the tests, I get a set of errors from Playwright saying it can't find Chrome, Webkit nor Firefox.
the errors all look like this, only the referenced browser and its path changes:
It seems like Playwright is looking at the wrong paths.
e.g For Chromium the install path is /home/runner/.cache/ms-playwright/chromium-1134
,
but it seems like Playwright is looking for it on the path /home/runner/.cache/ms-playwright/chromium_headless_shell-1161/chrome-linux/headless_shell
Any ideas on how to fix this?
btw: When running pnpm exec playwright install --with-deps
this is logged in the Github Actions run: Switching to root user to install dependencies...
.
- 2 Can you edit your question to include more details about your pipeline? – bryanbcook Commented Mar 25 at 17:47
1 Answer
Reset to default 0Im not sure why the problem occured, but updating the playwright package to the latest version fixed it
本文标签: unit testingPlaywright does not find browsers after running installStack Overflow
版权声明:本文标题:unit testing - Playwright does not find browsers after running install - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744199294a2594888.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论