与Firefox不同,Nightly浏览器使用Playwright Java启动。

huangapple go评论167阅读模式
英文:

Instead of FIrefox, Nighly browser launched with playwright java

问题

我尝试使用Playwright Java 1.33.0版本的以下代码片段启动Firefox,但它只启动了Nightly浏览器。看起来这是预期的行为,有没有办法克服这个问题?

  1. browser = playwright.firefox().launch(new BrowserType.LaunchOptions().setHeadless(false));
  2. 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?

  1. browser = playwright.firefox().launch(new BrowserType.LaunchOptions().setHeadless(false));
  2. 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.

huangapple
  • 本文由 发表于 2023年7月24日 15:38:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76752301.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定