Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Webdriver BiDi #3447

smanenti started this conversation in Ideas
Jan 22, 2025 · 2 comments · 2 replies
Discussion options

Hi!
Is there any plan or roadmap to integrate in the future the webdriver BiDi, as a replacement of the current traditional webdriver?

Webdriver BiDi (bidirectional) is currently actively under development by Selenium/ browser's vendors, and currently as draft on W3C for standardization.

WebDriver BiDi should have the same hability than the CDP in terms of execution time (much more faster) and functionalities (access to browser / devtool functions), in addition to be compatible with all the major browser's vendors.

I'm asking because we did a comparison between SeleniumBase and Playwright (on same project, python + pytest) and Playwright is 2x faster thanks to CDP instead of the webdriver protocol that SeleniumBase is using.
This was just meant to check the difference in terms of execution time between webdriver/ CDP, as we were curious.

Of course, webdriver BiDi is not yet finished, and the purpose here is to know what's your opinion on the subject and the possible roadmap assotiated.

Ref.
https://www.w3.org/TR/webdriver-bidi/
https://github.com/w3c/webdriver-bidi

Thanks a lot for this awesome automation framework!

You must be logged in to vote

Replies: 2 comments 2 replies

Comment options

Hello!
When Webdriver BiDi becomes available officially (non-draft releases), it will be evaluated for any potential uses within SeleniumBase.

Are you aware that SeleniumBase has a CDP Mode that uses the CDP API directly without using Selenium?

Can you explain how you compared Playwright with SeleniumBase? Based on the numbers I've seen through various analytics, both frameworks run at approximately the same speed when used with optimal settings. I've compared that data during various live demos and public presentations. I'd be curious to see how you made your calculations and reached your conclusions, as the data I've seen shows something quite different from what you're reporting.

Thanks for your support!

You must be logged in to vote
0 replies
Comment options

Hi Michael,
Thanks for your time and reply!

Yes, we're aware of the CDP mode of SeleniumBase, and we're actually looking into it to check if it can help reducing the execution time of some test scenarios which are taking lot of time (so in our case, not intended to be used for anti-bot detection).
However, CDP mode is not a perfect option for us, as it is only compatible with Chrome/Chromium and not with Firefox (unless I'm wrong?) + we need W3C compliant, standardized API like WebDriver is providing.

About the comparison between Playwright and SeleniumBase, this is really interesting that you have analytics that proves that both frameworks are running at ~ the same speed! That could indicate, indeed, that we may miss some optimal settings.
Would you mind to list these settings optimal settings for SB?

On our side, we did our comparison by writing the same test scenario on a Web application that we are testing, one with SeleniumBase, the other one with Playwright (https://github.com/microsoft/playwright-pytest).
Both scripts were doing the same clicks and asserts, on Chrome (headed) and were built on top of Python + Pytest.

We saw that Playwright was taking 2x less time to complete the actions, and we saw that Playwrite seems to less wait for the full page to be loaded, performing actions more quickly.
Based on that, we also tried different load strategy / JSwait of SeleniumBase: while it was better, it did not compete with Playwrite.

FYI, our application is using old technologies/structure, such as lot of JS and iFrames - sometimes nested, I do not know if this can explain some latency.

Since you have already compared both frameworks, we will compare again both frameworks but this time on an online Web page (one of the Web page you are proving in the documentation for testing purpose).
We will also pay attention to the settings and we will also be able to provide the POC as needed.

Again, I'll be really interested of the optimal settings of SB you were referencing, if you could provide those.

Thank you again for your time and support!

You must be logged in to vote
2 replies
Comment options

Performance stats between Playwright and SeleniumBase are now in this ReadMe:
https://github.com/mdmintz/playwright-vs-seleniumbase

Comment options

Thank you very much for providing test scripts and comparison!
This is really interesting values and we will work on finding why in our case SeleniumBase is executing slower than Playwright (missing optimal parameters / due to our Web application).

In any case, congratulations to SeleniumBase, which is proving it can compete with Playwright, even while using WebDriver, which is known to be slower🥇

Thanks again for your time, collaboration and transparency!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /