Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created January 29, 2021 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angiejones/f2686fc54d93ba891c6ec7c454556151 to your computer and use it in GitHub Desktop.
Save angiejones/f2686fc54d93ba891c6ec7c454556151 to your computer and use it in GitHub Desktop.
Playwright - create Page and navigate to URL
@BeforeClass
public void setUp(){
browser = Playwright
.create()
.chromium()
.launch(new BrowserType.LaunchOptions().withHeadless(false));
Page page = browser.newPage();
page.navigate("https://automationbookstore.dev/");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment