Skip to content

Commit 088bebd

Browse files
committed
added new class for creating click operations
1 parent 887ee85 commit 088bebd

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package io.github.mfaisalkhatri.tests;
2+
3+
import com.microsoft.playwright.Browser;
4+
import com.microsoft.playwright.BrowserType;
5+
import com.microsoft.playwright.Page;
6+
import com.microsoft.playwright.Playwright;
7+
import org.testng.annotations.AfterClass;
8+
import org.testng.annotations.BeforeClass;
9+
10+
public class ClickOperationTests {
11+
12+
private Playwright playwright;
13+
private Page page;
14+
15+
@BeforeClass
16+
public void setup() {
17+
this.playwright = Playwright.create ();
18+
Browser browser = playwright.chromium().launch(new BrowserType.LaunchOptions().setHeadless(false)
19+
.setChannel("chrome"));
20+
this.page = browser.newPage ();
21+
}
22+
23+
24+
25+
26+
@AfterClass
27+
public void tearDown() {
28+
this.page.close ();
29+
this.playwright.close ();
30+
}
31+
}

0 commit comments

Comments
 (0)