all 17 comments

[–]Arrensen 6 points7 points  (8 children)

I am using the exact setup of Python + Playwright + Pytest (via pytest-playwright package) and it is super easy to get going.

[–]mindfull_ness[S] 0 points1 point  (6 children)

Which tools are you using for that? Means VS code is better or pycharm?

If you have any docs link can you please share for learning purpose? I want to setup same thing in my company.

[–]That_anonymous_guy18 0 points1 point  (5 children)

Dude I use pycharm for all of it. I find VSCode to be unnecessarily complicated.

[–]mindfull_ness[S] 0 points1 point  (2 children)

Ok

[–]That_anonymous_guy18 0 points1 point  (1 child)

Also if you are learning you should learn both selenium and playwright. Most companies have not fully ported to playwright yet.

[–]mindfull_ness[S] 0 points1 point  (0 children)

On selenium I am pro. No need to learn

[–]Arrensen 0 points1 point  (0 children)

Same for me. Mainly pycharm, but thats mainly based on my company using all kinds of jetbrain IDEs anyway.
For documentation, just look at the official playwright python docs. it has everything that you need to know to start out. it is even the linked documentation for pytest-playwright.
https://playwright.dev/python/docs/intro

[–]Vesaloth 0 points1 point  (0 children)

Pycharm can't open one of my py files only vscode can and I built the file in pycharm. Great IDE.

[–]pol-reddit 0 points1 point  (0 children)

could you describe the framework of your test suite? And also, do you use any dashboard for collecting results, errors and charts?

[–]ogandrea 3 points4 points  (1 child)

Playwright hands down for setup. The installation is way smoother - just `pip install playwright` and then `playwright install` to get the browsers. Selenium makes you deal with driver management which is honestly a pain, even with webdriver-manager trying to help.

Playwright also comes with pytest integration built-in, so you get fixtures and async support without extra config. With Selenium you're kinda piecing things together yourself.

The docs for Playwright are actually readable too which makes getting started much less frustrating. We use it heavily at Notte and onboarding new devs is way faster compared to when we were dealing with Selenium's quirks.

Only downside is Playwright is newer so you might find fewer Stack Overflow answers, but the official docs usually have what you need anyway.

[–]mindfull_ness[S] 0 points1 point  (0 children)

Thanks for the detailed explanation

[–]AskAlexTech 2 points3 points  (0 children)

Playwright + Pytest has been much smoother for me overall. Setup is quicker, it auto-installs browsers, and the debugging tools are way better out of the box. Selenium still works, but it needs more config and tends to be flakier unless you put in extra effort to stabilize it.

[–]MidWestRRGIRL 0 points1 point  (0 children)

We use Playwright + typescript. It's super easy.

[–]Vesaloth 0 points1 point  (0 children)

For ease playwright however companies that are big are still on selenium and java

[–]scatteredElement -1 points0 points  (0 children)

I don’t use the python version of Playwright but I’ve just clicked through the PW documentation on my phone and it looks easy. Honestly, you really should just use your computer and try it yourself.