Browse Source

Change to modern headless tag

pull/2/head
Jxck-S 4 years ago
parent
commit
ce47fe3d18
  1. 2
      defSS.py

2
defSS.py

@ -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)

Loading…
Cancel
Save