Headless for production
This commit is contained in:
parent
67dbfed7b4
commit
7aaf878ced
2
check.py
2
check.py
|
@ -50,7 +50,7 @@ class HandleResponse:
|
||||||
|
|
||||||
def run(playwright: Playwright) -> None:
|
def run(playwright: Playwright) -> None:
|
||||||
"""Launch browser and search for options."""
|
"""Launch browser and search for options."""
|
||||||
browser = playwright.chromium.launch(headless=False)
|
browser = playwright.chromium.launch(headless=True)
|
||||||
context = browser.new_context()
|
context = browser.new_context()
|
||||||
page = context.new_page()
|
page = context.new_page()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue