seleniumbase / SeleniumBase

📊 Python's all-in-one framework for web crawling, scraping, testing, and reporting. Supports pytest. UC Mode provides stealth. Includes many tools.
https://seleniumbase.io
MIT License
4.46k stars 910 forks source link

Comparison between playwright and seleniumbase? #2674

Closed WaterLoran closed 2 months ago

WaterLoran commented 3 months ago

Nowadays, playwright is also very popular, just like seleniumbase, which largely solves the problem of reliability during execution May I ask the author, have you made any relevant comparisons between these two libraries? Can you share your thoughts The actual situation is like this. I am in a technical group and have been recommending seleniumbase to everyone. I also enjoy using seleniumbase, but there is always someone who comes out to recommend playwright to everyone, but he doesn't quite understand the advantages of playwright.

This is the framework I encapsulated using selenium base, which is based on a descriptive framework. The code is very concise, and the code repository address is https://github.com/WaterLoran/RuoYiTest/tree/master/cases/web_ui

syariffudinzo commented 3 months ago

I found this while comparing between Cypress, Playwright and Selenium.

maybe this could help you too https://zhiminzhan.medium.com/correct-wrong-playwrights-advantage-over-selenium-part-1-playwright-is-modern-and-faster-than-0a652c7e9ee7

WaterLoran commented 2 months ago

非常感谢您的评论, 您提供的信息非常有用!!

mdmintz commented 2 months ago

SeleniumBase has lots of tools that other frameworks don't have:

And since SeleniumBase a primarily a web-testing framework for pytest, the real comparison would be with https://github.com/microsoft/playwright-pytest, which is also a web-testing framework for pytest.

WaterLoran commented 2 months ago

Okay, thank you very much. I have almost finished reading the document and have a general understanding. The document is really a big project It is suggested to consider creating a book so that it can sell for an additional amount of money in China