Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other Browsers #647

Closed
JoelEinbinder opened this issue Jan 25, 2020 · 10 comments
Closed

Other Browsers #647

JoelEinbinder opened this issue Jan 25, 2020 · 10 comments

Comments

@JoelEinbinder
Copy link
Contributor

JoelEinbinder commented Jan 25, 2020

Mega issue to discuss playwright support for more platforms.

Older versions of our core browsers

As we upstream our patches and time goes on, the current versions of the browsers playwright supports will naturally be the older versions. Firefox ESR is supported for up to a year though, so we might get some value by specifically releasing an older version.

Branded Chromium

  • Edge
  • Chrome
  • Opera

These should just work today by specifying executablePath and running with the chromium object. They provide some small value over testing against the Chromium we download because they turn on different feature flags, and can play different media types. We could be doing more to help people with compatibility between the playwright package version and the specific branded browser they have.

Electron

Electron is supported with playwright-electron package.

Mobile Browsers

  • iOS Safari
  • Android Chrome

Right now we fake these browsers. It would be cool to be able to run tests directly against them. Maybe we can use the IOS simulator?

Internet Explorer

IE is still around somehow, and people want to test against it. The new Edge is based on Chromium, but still has an IE mode. It's very unlikely we would get our full feature set into IE. But having a small playwright-compatible subset of features could help tide people over until IE finally goes away. We could potentially wrap the work that has been done on WebDriver here.

@headlesstesting
Copy link

We've been experimenting with different browsers and Playwright.
Edge is working fine, however Opera (68) does not work yet, this is returning an error:
Browser.setDownloadBehavior' wasn't found at the start of the session.

@mxschmitt
Copy link
Member

I can confirm that these browsers are working:

  • Microsoft Edge Canary 85.0.563.0
  • Google Chrome Canary 86.0.4187.0
  • Brave Nightly - 1.12.64 Chromium 83.0.4103.116

but these not:

  • Opera Developer edition 71.0.3735.0 - Chromium 86.0.4187.0
  • Vivaldi Snapshot 3.2.1964.3 - Chromium 84.0.4147.62

A working Opera version would be probably useful.

@12masta
Copy link
Contributor

12masta commented Jul 10, 2020

@mxschmitt Hey, how to execute playwright with Edge Canary? Could you share that knowledge somewhere?

@mxschmitt
Copy link
Member

@mxschmitt Hey, how to execute playwright with Edge Canary? Could you share that knowledge somewhere?

Hey! I created a blog post about it, let me know if I forgot something.
https://playwright.tech/blog/automate-microsoft-edge-with-playwright

@NareshMurthy
Copy link
Contributor

Hey @mxschmitt,
I see that playwright uses firefox nightly 78 right now, I tried to run tests on firefox-stable present at '/Applications/Firefox.app/Contents/MacOS/firefox' . I could see the browser launching, but it directly goes to https://0.0.0.0
Is there a way we could use firefox stable build with playwright?

@mxschmitt
Copy link
Member

Hey @mxschmitt,
I see that playwright uses firefox nightly 78 right now, I tried to run tests on firefox-stable present at '/Applications/Firefox.app/Contents/MacOS/firefox' . I could see the browser launching, but it directly goes to https://0.0.0.0
Is there a way we could use firefox stable build with playwright?

Hi, my blog post only relates to Chromium based browsers. For Firefox or WebKit it's not possible to use own versions since Playwright internally injects there some wrappers to provide the APIs to automate it on compile time.

@rudeshkumar
Copy link

How to launch opera browser in playwright??

@mxschmitt
Copy link
Member

How to launch opera browser in playwright??

Use Chromium to launch a browser and set your opera as a executable path when launching chromium.

@rudeshkumar
Copy link

rudeshkumar commented Apr 6, 2022 via email

@mxschmitt
Copy link
Member

    const browser = await playwright.chromium.launch({
      executablePath: '/foo/bar/foobar'
    });

this then depends on which OS you use, on Windows its e.g. on C:/Programs etc. on mac in /Applications etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants