Skip to content

Instantly share code, notes, and snippets.

@angiejones
Created January 29, 2021 04:34
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/f26a970e673e3e92d8695333596a2e63 to your computer and use it in GitHub Desktop.
Save angiejones/f26a970e673e3e92d8695333596a2e63 to your computer and use it in GitHub Desktop.
Playwright launch browser with headless disabled
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(new BrowserType.LaunchOptions().withHeadless(false));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment