英文:
Instead of FIrefox, Nighly browser launched with playwright java
问题
我尝试使用Playwright Java 1.33.0版本的以下代码片段启动Firefox,但它只启动了Nightly浏览器。看起来这是预期的行为,有没有办法克服这个问题?
browser = playwright.firefox().launch(new BrowserType.LaunchOptions().setHeadless(false));
Browser browser = playwright.firefox().launch(new BrowserType.LaunchOptions().setChannel("firefox").setHeadless(false));
英文:
I tried to launch Firefox with below code snippets in separate attempts with Playwright Java 1.33.0 version but , it just launches Nighly browser. it seems that is the intended behavior, anyway to overcome this?
browser = playwright.firefox().launch(new BrowserType.LaunchOptions().setHeadless(false));
Browser browser = playwright.firefox().launch(new BrowserType.LaunchOptions().setChannel("firefox").setHeadless(false));
答案1
得分: 1
Playwright使用自己的Firefox构建。该构建基于Firefox Nightly构建。这就是为什么您会获得该浏览器的原因。您将无法使用原始浏览器版本。
英文:
Playwright uses its own Firefox build. That build is based on the Firefox Nightly build. That's why you are getting that browser. You won't be able to use the stock browser version.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论