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

[Feature]: BiDi - Playwright with Webdriver BiDi protocol #30237

Closed
kiruba07 opened this issue Apr 4, 2024 · 13 comments
Closed

[Feature]: BiDi - Playwright with Webdriver BiDi protocol #30237

kiruba07 opened this issue Apr 4, 2024 · 13 comments

Comments

@kiruba07
Copy link

kiruba07 commented Apr 4, 2024

🚀 Feature Request

Hi Team,

Currently, Playwright use the CDP protocol to connect and interact with Chrome and Edge browsers.

But, as per the new w3c standards, most of the browsers have now enabled the Webdriver BiDi protocol to allow the automation tools to connect and interact with browsers.

So, Is the any plan in the Playwright pipeline to enable Webdriver BiDi protocol through Playwright ?

This clarity will help most of the organisations to consider as part of the tooling strategies.

Example

No response

Motivation

To align with w3c new protocol, and helps the organisations to consider this as part of their tooling strategies.

@pavelfeldman
Copy link
Member

We consider the communication protocol that Playwright uses to be its implementation detail. If you have a feature request to Playwright, please describe it and we will be happy to consider implementing it.

@marcosvfranco
Copy link

We consider the communication protocol that Playwright uses to be its implementation detail. If you have a feature request to Playwright, please describe it and we will be happy to consider implementing it.

@pavelfeldman sorry but your reply is not clear and not answering properly what was asked, can you be more direct and clear?

@chenmichaelc
Copy link

@pavelfeldman For context, it looks like Firefox is aiming to deprecate Chrome DevTools Protocol support by the end of 2024: https://fxdx.dev/deprecating-cdp-support-in-firefox-embracing-the-future-with-webdriver-bidi/

If there's a business-facing feature request to define, it may be to provide future-facing continuation of the ability for Playwright to execute tests in Firefox.

(If there is some other way to achieve this goal without implementing WebDriver BiDi in Playwright, that may be acceptable too. However, I wasn't able to find any official documentation about this myself.)

@marcosvfranco
Copy link

@chenmichaelc That's the point, Firefox will be the first of all browsers that are making this switch, but it's possible that all of them will change to the new protocol (I have questions about if Chrome will also because they created the CDP, but still, they are supporting BiDi and may change their protocol in the future)

@MindaugasMateika
Copy link
Contributor

MindaugasMateika commented Jul 12, 2024

As far as I know Playwright does not use CDP for Firefox and instead uses patched Firefox and Juggler so this change from Firefox might not have an impact at all. Other than that, Pavel is also creator of CDP and I'm sure whole team is on top of newest developments in browser engineering and committed to support testing on Firefox one way or the other.

@marcosvfranco
Copy link

@MindaugasMateika I'm sure Pavels is a top engineer, I just reopened the thread because the response he gave was not 100% clear and the news from Firefox are newer them the last reply he gave :)

@chenmichaelc
Copy link

I'm sure Pavels is a top engineer, I just reopened the thread because the response he gave was not 100% clear and the news from Firefox are newer them the last reply he gave :)

Same, and no offense intended from my part. I just wanted to try to keep the info here as self-contained as possible to prevent misunderstandings in the conversation.

Also, thank you to @MindaugasMateika for the additional info!

@khmyznikov
Copy link

Patched browsers binaries is not cool thing. I see folks drops playwright because of no BiDi support.

@syradar
Copy link

syradar commented Aug 8, 2024

Yeah supporting BiDi seems much better than patching binaries.

@MindaugasMateika
Copy link
Contributor

Yeah supporting BiDi seems much better than patching binaries.

Patching binaries > losing some Playwright features

@bharathmuppa
Copy link

I do vouch for the people who wants to know the future roadmap of playwright whether it is going in direction of webdriver BiDi or keep using CDP or atleast a dedicated page for comparison or rational reasoning on why it is not .

As it is being adopted at bigger organization it is very difficult to propose something that is as cool as playwright without these details.

@amardeep2006
Copy link

amardeep2006 commented Sep 7, 2024

Looks like BiDi support is under evaluation. A great news indeed as I see multiple pull requests https://github.com/microsoft/playwright/pulls?q=bidi

@rmacklin
Copy link

rmacklin commented Dec 6, 2024

Also want to add a link to the issue that tracks current BiDi support (for anyone that ends up on this thread first):

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

10 participants