Added headlessness from here https://medium.com/@joyzoursky/recent-updates-6264d1e5d42f
This commit is contained in:
parent
5faa9f628d
commit
7ce4c993f9
@ -24,6 +24,8 @@ class SeleniumTest(LiveServerTestCase):
|
||||
def setUpClass(cls):
|
||||
chrome_options = webdriver.ChromeOptions()
|
||||
chrome_options.add_argument('--no-sandbox')
|
||||
chrome_options.add_argument('--headless')
|
||||
chrome_options.add_argument('--disable-gpu')
|
||||
cls.sl = webdriver.Chrome(chrome_options=chrome_options)
|
||||
# profile = webdriver.FirefoxProfile()
|
||||
# profile.set_preference("dom.forms.number", False)
|
||||
|
Loading…
Reference in New Issue
Block a user