Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(java): fix intro examples (#19896)
Max Schmitt2f4b5ea3710e
diff --git a/docs/src/intro-java.md b/docs/src/intro-java.mdindex a52657bfde..81654cc5c9 100644--- a/docs/src/intro-java.md+++ b/docs/src/intro-java.md@@ -67,6 +67,11 @@ public class App {<groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.10.1</version>+ <!-- References to interface static methods are allowed only at source level 1.8 or above -->+ <configuration>+ <source>1.8</source>+ <target>1.8</target>+ </configuration></plugin></plugins></build>diff --git a/docs/src/writing-tests-java.md b/docs/src/writing-tests-java.mdindex 551426cca1..23d5872014 100644--- a/docs/src/writing-tests-java.md+++ b/docs/src/writing-tests-java.md@@ -27,7 +27,7 @@ public class App {assertThat(page).hasTitle(Pattern.compile("Playwright"));// create a locator- Locator getStarted = page.getByRole(AriaRole.BUTTON, new Page.GetByRoleOptions().setName("Get Started"));+ Locator getStarted = page.getByRole(AriaRole.LINK, new Page.GetByRoleOptions().setName("Get Started"));// Expect an attribute "to be strictly equal" to the value.assertThat(getStarted).hasAttribute("href", "/docs/intro");