File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
playwright/src/main/java/com/microsoft/playwright/assertions Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -580,7 +580,7 @@ default void isHidden() {
580580 *
581581 * <p> **Usage**
582582 * <pre>{@code
583- * Locator locator = page.locator("button.submit" );
583+ * Locator locator = page.getByRole(AriaRole.BUTTON );
584584 * // Make sure at least some part of element intersects viewport.
585585 * assertThat(locator).isInViewport();
586586 * // Make sure element is fully outside of viewport.
@@ -600,7 +600,7 @@ default void isInViewport() {
600600 *
601601 * <p> **Usage**
602602 * <pre>{@code
603- * Locator locator = page.locator("button.submit" );
603+ * Locator locator = page.getByRole(AriaRole.BUTTON );
604604 * // Make sure at least some part of element intersects viewport.
605605 * assertThat(locator).isInViewport();
606606 * // Make sure element is fully outside of viewport.
Original file line number Diff line number Diff line change 1- 1.31.0-beta-1676596096000
1+ 1.31.1
You can’t perform that action at this time.
0 commit comments