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

Question: does chromedp is capable of running tests on Safari/Edge browsers? #830

Closed
SergiyBeno opened this issue May 24, 2021 · 2 comments

Comments

@SergiyBeno
Copy link

What versions are you running?

Latest, v. 0.7.2

What did you do? Include clear steps.

I'm pretty new person to chromedp tool - I'm doing some research about can it replace our current web ui test automation tool. The last question on my list - is the support for other browsers. I have found lots of articles over the Internet stating that chromedp is capable of running Safari/Edge browsers for test purposes. But so far I can't find anything in the official documentation or any test code snippets or dedicated flags or options within the ExecAllocatorOption for other browsers...
So can the chromedp drive other browsers for the testing? Thank in advance for the answer!

@ZekeLu
Copy link
Member

ZekeLu commented May 25, 2021

chromedp drives browsers supporting the Chrome DevTools Protocol. That means all Chromium based browsers are supported. Including:

  1. Chromium (of course)
  2. Chrome
  3. Edge (Chromium based)
  4. Electron App (see How to use chromedp to drive an Electron application #628)

The support of Chrome DevTools Protocol in Firefox is in development (https://firefox-source-docs.mozilla.org/remote/index.html). So I think chromedp should work with Firefox to some extent.

Regarding Safari, I'm not aware of whether it supports Chrome DevTools Protocol.

If you want to work with multiple browsers, maybe you want to check Playwright.

@SergiyBeno
Copy link
Author

Thank you @ZekeLu for the detailed explanations! Very helpful!

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

2 participants