Change to modern headless tag

This commit is contained in:
Jxck-S 2020-10-05 12:34:22 -04:00
parent f194460a3a
commit ce47fe3d18
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ from selenium import webdriver
import time
def getSS(icao):
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.headless = True
chrome_options.add_argument('window-size=800,800')
#chrome_options.add_argument('--no-sandbox') # required when running as root user. otherwise you would get no sandbox errors.
browser = webdriver.Chrome(options=chrome_options)