Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created January 29, 2021 04:31
Show Gist options
  • Save angiejones/abfc846aed634f3917937952d5caec44 to your computer and use it in GitHub Desktop.
Save angiejones/abfc846aed634f3917937952d5caec44 to your computer and use it in GitHub Desktop.
Playwright Java - launch browser
package base;
import com.microsoft.playwright.*;
import org.testng.annotations.BeforeClass;
public class BaseTests {
private Browser browser;
@BeforeClass
public void setUp(){
browser = Playwright
.create()
.chromium()
.launch();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment