mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(java): fix intro examples (#19896)
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
1afa38d5a7
commit
2f4b5ea371
@ -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>
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user