use Headless
This commit is contained in:
parent
1b7ebb4325
commit
c4829156a9
@ -100,7 +100,7 @@ public class EtsScraper {
|
|||||||
try (Playwright playwright = Playwright.create()) {
|
try (Playwright playwright = Playwright.create()) {
|
||||||
Browser browser = playwright.chromium().launch(
|
Browser browser = playwright.chromium().launch(
|
||||||
new BrowserType.LaunchOptions()
|
new BrowserType.LaunchOptions()
|
||||||
.setHeadless(false)
|
.setHeadless(true)
|
||||||
);
|
);
|
||||||
|
|
||||||
BrowserContext context = browser.newContext(
|
BrowserContext context = browser.newContext(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user