File tree Expand file tree Collapse file tree
src/test/java/io/github/mfaisalkhatri/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55import com .microsoft .playwright .Browser ;
66import com .microsoft .playwright .BrowserType ;
7- import com .microsoft .playwright .Locator ;
87import com .microsoft .playwright .Page ;
98import com .microsoft .playwright .Playwright ;
109import com .microsoft .playwright .options .AriaRole ;
@@ -27,13 +26,15 @@ public void setup() {
2726
2827 @ Test
2928 public void testLeftClick () {
30- page .navigate ("https://the-internet.herokuapp.com/" );
31- Locator challenginDomLink = page .getByRole (AriaRole .LINK ,
32- new Page .GetByRoleOptions ().setName ("Challenging DOM" ));
33- challenginDomLink .click ();
29+ this .page .navigate ("https://the-internet.herokuapp.com/" );
30+ this .page .getByRole (AriaRole .LINK , new Page .GetByRoleOptions ().setName ("Challenging DOM" ))
31+ .click ();
32+ //Locator challenginDomLink = page.getByRole (AriaRole.LINK,
33+ // new Page.GetByRoleOptions ().setName ("Challenging DOM"));
34+ //challenginDomLink.click ();
3435
3536 assertThat (
36- page .getByRole (AriaRole .HEADING , new Page .GetByRoleOptions ().setName ("Challenging DOM" ))).isVisible ();
37+ this . page .getByRole (AriaRole .HEADING , new Page .GetByRoleOptions ().setName ("Challenging DOM" ))).isVisible ();
3738 }
3839
3940
You can’t perform that action at this time.
0 commit comments