question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Playwright

See original GitHub issue

Playwright is “a Node.js library to automate Chromium, Firefox and WebKit with a single API” that now also supports Java. Let’s see how we can best integrate it with JUnit Jupiter.

One thing to note is that we should keep the dependency on Playwright optional (aka provided), so we don’t drag it in ourselves if users don’t already use it. It should probably also be in its own package org.junitpioneer.(jupiter.?)playwright. If it proves successful and grows, we can always spin it out into its own project by moving the package there.

In this issue, let’s collect and discuss ideas. For their implementation, we can create dedicated issues.

My only idea so far:

  • parameter resolver that injects Browser instances, so tests can easily be executed against multiple browsers

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
beatngu13commented, Feb 2, 2021

One thing to note is that we should keep the dependency on Playwright optional (aka provided), so we don’t drag it in ourselves if users don’t already use it.

Rather than using provided, how about optional (Maven) / feature variants (Gradle)? Haven’t used these myself, but it sounds exciting! (Related blog post.)

If it proves successful and grows, we can always spin it out into its own project by moving the package there.

junit-pioneer-playwright, junit-pioneer-selenium, … 👏

1reaction
nipafxcommented, Feb 2, 2021

I’m pretty sure, I’ve already written an extension like this for Selenium, but I can’t find it. No idea where that one went. I dimly remember opening a PR somewhere… 🙈

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playwright: Fast and reliable end-to-end testing for modern ...
Playwright supports all modern rendering engines including Chromium, WebKit, and Firefox. Cross-platform. Test on Windows, Linux, and macOS, locally or on ...
Read more >
microsoft/playwright - GitHub
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. - GitHub -...
Read more >
Use Playwright to automate and test in Microsoft Edge
The Playwright library provides cross-browser automation through a single API. ... use: { // Supported Microsoft Edge channels are: msedge, ...
Read more >
Microsoft Playwright Testing Guide and Tutorial
What Are Microsoft Playwright Browser Contexts? How To Run Playwright Tests In Parallel Playwright Tutorial On How To Browser Viewports Supports ...
Read more >
Supported browser and OS versions for Playwright tests
When running any Playwright test, you have to specify the OS and browser that you want to use for the test. This document...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found