Switch to headless Firefox

pull/16/head
Logan Williams 2022-02-28 11:45:32 +01:00
rodzic 6ebce974f0
commit c6b159905b
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -70,7 +70,9 @@ def process_sheet(sheet, header=1):
secret=os.getenv('DO_SPACES_SECRET')
)
driver = webdriver.Firefox()
options = webdriver.FirefoxOptions()
options.headless = True
driver = webdriver.Firefox(options=options)
driver.set_window_size(1400, 2000)
# loop through worksheets to check