Playwright

 30 Minutes
 15 Questions


This test is designed to assess a candidate's knowledge and practical skills in browser automation and end-to-end testing using Playwright. It includes questions covering Playwright fundamentals, locators, assertions, asynchronous operations, and test automation best practices. The test also includes hands-on coding challenges that require candidates to write Playwright scripts, interact with web elements, and validate application behavior. It evaluates the candidate's ability to develop reliable, maintainable, and efficient automated tests.


Example Question:

Coding
Given the following HTML:

<input id="email" />
<input id="password" />
<button id="login">Login</button>
<div id="success">Welcome</div>

Write a Playwright test that:

  • Enter an email address.
  • Enters a password.
  • Clicks the Login button.
  • Verifies that the text "Welcome" is visible.
Answers