Need advice about which tool to choose?Ask the StackShare community!

Playwright

210
399
+ 1
67
Selenium

13.3K
10.7K
+ 1
522
Add tool

Selenium vs Playwright: What are the differences?

What is Selenium? Web Browser Automation. Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

What is Playwright? Node library to automate Chromium, Firefox and WebKit with a single API (By Microsoft). It is a Node library to automate the Chromium, WebKit and Firefox browsers with a single API. It enables cross-browser web automation that is ever-green, capable, reliable and fast.

Selenium and Playwright can be categorized as "Browser Testing" tools.

Selenium and Playwright are both open source tools. It seems that Selenium with 17.3K GitHub stars and 5.6K forks on GitHub has more adoption than Playwright with 10.9K GitHub stars and 282 GitHub forks.

Advice on Playwright and Selenium
Needs advice
on
JestJestSeleniumSelenium
and
WebdriverIOWebdriverIO
in

we are having one web application developed in Reacts.js. in the application, we have only 4 to 5 pages that we need to test. I am having experience in selenium with java. Please suggets which tool I should use. and why ............................ ............................ .............................

See more
Replies (1)
Prashanth Marappa
Senior Software Engineer at Mphasis · | 1 upvotes · 163.6K views
Recommends
SeleniumSelenium

with the help of selenium we can automate react js for functional testing

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Playwright
Pros of Selenium
  • 12
    Cross browser
  • 8
    Open source
  • 8
    Test Runner with Playwright/test
  • 7
    Promise based
  • 6
    Well documented
  • 5
    API Testing
  • 4
    Integrate your POMs as extensible fixtures
  • 4
    Execute tests in parallel
  • 4
    Capture videos, screenshots and other artifacts on fail
  • 3
    Context isolation
  • 3
    Python Support
  • 3
    Inbuild reporters html,line,dot,json
  • 172
    Automates browsers
  • 154
    Testing
  • 101
    Essential tool for running test automation
  • 24
    Remote Control
  • 24
    Record-Playback
  • 8
    Data crawling
  • 7
    Supports end to end testing
  • 6
    Functional testing
  • 6
    Easy set up
  • 4
    The Most flexible monitoring system
  • 3
    End to End Testing
  • 3
    Easy to integrate with build tools
  • 2
    Comparing the performance selenium is faster than jasm
  • 2
    Record and playback
  • 2
    Compatible with Python
  • 2
    Easy to scale
  • 2
    Integration Tests
  • 0
    Integrated into Selenium-Jupiter framework

Sign up to add or upvote prosMake informed product decisions

Cons of Playwright
Cons of Selenium
  • 9
    Less help
  • 2
    Node based
  • 1
    Does not execute outside of browser
  • 8
    Flaky tests
  • 4
    Slow as needs to make browser (even with no gui)
  • 1
    Update browser drivers

Sign up to add or upvote consMake informed product decisions

What is Playwright?

It is a Node library to automate the Chromium, WebKit and Firefox browsers with a single API. It enables cross-browser web automation that is ever-green, capable, reliable and fast.

What is Selenium?

Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention Playwright and Selenium as a desired skillset
CBRE
United States of America Texas Houston
CBRE
United States of America Texas Houston
CBRE
Poland Mazowieckie Warsaw
CBRE
United States of America Washington Redmond
CBRE
United States of America Washington Redmond
What companies use Playwright?
What companies use Selenium?
See which teams inside your own company are using Playwright or Selenium.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Playwright?
What tools integrate with Selenium?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

What are some alternatives to Playwright and Selenium?
Puppeteer
Puppeteer is a Node library which provides a high-level API to control headless Chrome over the DevTools Protocol. It can also be configured to use full (non-headless) Chrome.
Protractor
Protractor is an end-to-end test framework for Angular and AngularJS applications. Protractor runs tests against your application running in a real browser, interacting with it as a user would.
Cypress
Cypress is a front end automated testing application created for the modern web. Cypress is built on a new architecture and runs in the same run-loop as the application being tested. As a result Cypress provides better, faster, and more reliable testing for anything that runs in a browser. Cypress works on any front-end framework or website.
TestCafe
It is a pure node.js end-to-end solution for testing web apps. It takes care of all the stages: starting browsers, running tests, gathering test results and generating reports.
WebdriverIO
WebdriverIO lets you control a browser or a mobile application with just a few lines of code. Your test code will look simple, concise and easy to read.
See all alternatives