microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.22k stars 3.62k forks source link

[Question]: Are there any alternatives to Selenium Grid for Playwright? #22961

Closed akrbout closed 1 year ago

akrbout commented 1 year ago

Your question

Hello!

According to the documentation, Playwright knows how to work with Selenium Grid. In some places Selenium doesn't work for me and I want to find a decent free alternative that I can use with Playwright. Has anyone had a case like this?

pavelfeldman commented 1 year ago

We recommend our users running their tests on GitHub Actions or other CIs. You can use shards if you need bigger scale. See https://playwright.dev/docs/next/test-parallel#shard-tests-between-multiple-machines.

akrbout commented 1 year ago

I use Python to write tests, what should I do in this case? I have no desire to run tests on GitHub. I would like a solution similar to Selenium Grid, as free and open source. Of course, there's also the Moon project that has the same functionality, but it has a number of limitations in the free version that makes it inappropriate for me.

pavelfeldman commented 1 year ago

Got it. This is currently out of scope for Playwright.

MananAmin commented 10 months ago

hi @akrbout , I hope there isn't any alternatives till date. if you found anything please post it, thanks

akrbout commented 10 months ago

hi @akrbout , I hope there isn't any alternatives till date. if you found anything please post it, thanks

Hi @MananAmin! I found nothing better than just porting my projects from Playwright to Selenium :) my code became faster with Selenium Grid (and in principle everything became better), apparently because it uses json wire protocol and bidi

MananAmin commented 10 months ago

ohh, this is scary, we're migrating from selenium to playwright (around xxk + testcases) and there is not solid future support for playwright python parallel execution.. Also, there is good progress on webdriver-bidi. Not sure how much stable it will be in early releases. but looks like google and Mozilla guys actively developing it. looks like we need to rethink about migration.

Sam-H101 commented 7 months ago

If there is anyone still looking for a solution for this, I’ll push my latest changes soon, but I have a full grid solution for this that almost perfectly mirrors the selenium grid. In the last 2 years I have made some improvements, but it has 0 issues running 90 web tests concurrently 24/7

https://github.com/Sam-H101/playwright-remote-orchestrator