Replies: 2 comments 2 replies
-
Hello! 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! |
Beta Was this translation helpful? Give feedback.
-
Hi Michael, 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). 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. 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). 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. 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). 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! |
Beta Was this translation helpful? Give feedback.
-
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!
Beta Was this translation helpful? Give feedback.
All reactions