π Feature Request
Please provide test fixtures for TestNG testing framework which would work similarly as in JUnit framework.
This could work similarly to @UsePlaywright, reducing boilerplate code.
In other words a similar funcitonality to Junit one provided here:
https://playwright.dev/java/docs/junit
Example
Example is to use annotation like suggested in : https://playwright.dev/java/docs/junit
@UsePlaywright
public class TestExample {
@test
void shouldClickButton(Page page) {
page.navigate("data:text/html,<script>var result;</script>Go");
page.locator("button").click();
assertEquals("Clicked", page.evaluate("result"));
}
Motivation
Motivation is a fact that TestNG is also broadly used