web-ui icon indicating copy to clipboard operation
web-ui copied to clipboard

Choose different playwright broswer engine

Open Learner00100 opened this issue 1 year ago • 2 comments

when running "playwright install" it install chromium and Firefox also headless version of it, so instead of chromium is it possible to choose Firefox?

Learner00100 avatar Jan 06 '25 19:01 Learner00100

Glancing at the code it looks like Chrome is hard coded for both playwright and own browser. It shouldn't be extremely difficult to code it to use firefox. I'll leave it to someone else if they decide to spend the time doing it.

According to Claude:

The main differences in Firefox implementation are:

  • Different launch arguments syntax
  • Firefox-specific user preferences for security settings
  • Different viewport handling
  • Profile management differences

rmensing avatar Jan 06 '25 21:01 rmensing

Glancing at the code it looks like Chrome is hard coded for both playwright and own browser. It shouldn't be extremely difficult to code it to use firefox. I'll leave it to someone else if they decide to spend the time doing it.

According to Claude:

The main differences in Firefox implementation are:

  • Different launch arguments syntax
  • Firefox-specific user preferences for security settings
  • Different viewport handling
  • Profile management differences

This is incorrect it literally installed firefox when installing playwright

Image

RealMrCactus avatar Mar 07 '25 00:03 RealMrCactus