Discussion on Making Testing Fun with Playwright by Max Schmitt | Testμ 2023

Who says testing isn’t fun? It’s all about providing developers with an amazing experience and the right tools. :hammer_and_pick:

This will encourage more individuals to create tests, resulting in improved code being deployed to production. As a result, developers will save time, and organizations will save costs. :moneybag:

Join Max Schmitt to dive into all the fun tools Playwright provides to help get those tests written and ship code with confidence.

Still not registered? Hurry up and grab your free tickets: Register Now!

If you have already registered and up for the session, feel free to post your questions in the thread below :point_down:

Following are some of the Q&As from the attendees:

How would a Playwright work with MFA?

Max Schmitt: Indeed, Playwright is compatible with Multi-Factor Authentication (MFA). It enables the automation of tasks such as entering verification codes and managing MFA prompts, enhancing testing accuracy and coverage.

How does it implement parallelism and multithreading?

Max Schmitt: Yes, Playwright supports parallelism and multithreading. It achieves this by running tests concurrently across multiple browser instances, optimizing test execution, and reducing time.

Is it possible to have time stamps inside the run result reports?

Max Schmitt: Yes, Playwright allows you to include timestamps in the run result reports. This helps track when tests were executed and assists in analyzing the test runs.

How do you see the future of Playwright?

Max Schmitt: The direction and evolution of technologies like Playwright depend on various factors and developments in the software industry; it’s hard to predict the future.

Which is better, JavaScript or Python script, for the Playwright?

Max Schmitt: Both JavaScript and Python (py script) are well-supported with Playwright. The choice depends on your familiarity and project requirements. JavaScript is often preferred due to its strong ties with web development, while Python is known for its simplicity and versatility.

Here some more unanswered questions from the attendees.

Is there any possibility Playwright will support mobile automation, an alternate to Appium (for native apps)?

How do you use Playwright to work on a page that requires MFA during log in process?

What are the advantages of using Playwright for cross browser testing?

How much time/effort will it take to move from Cypress to Playwright?

I’m new to automation and handling ads with Selenium gives me headache. Is Playwright any better?

What reporting options does Playwright offer to generate test execution reports?

Why do you keep the “await” explicit on each command?

Could you shed light on advanced techniques or integrations that aid in achieving comprehensive end-to-end test scenarios while accommodating dynamic UI changes?

What are the most reliable ways that Playwright enhances stability and test maintainability in complex scenarios?

I have Playwright tests in JavaScript. Is it very difficult to switch to TypeScript? How involved is the move from JavaScript to TypeScript?

When integrating Playwright with Cucumber, how to use Trace Viewer?

Is MFA supported via Playwright?

Can you provide insights into how Playwright supports both local debugging and debugging in a continuous integration environment?

In scenarios where a test encounters failures or unexpected behavior, how does Playwright’s live trace feature assist testers in identifying and debugging issues? Can you share an example?