@@ -248,7 +248,7 @@ class OverrideDriverTest(BaseCase):
248
248
options.add_argument(" --disable-3d-apis" )
249
249
options.add_argument(" --disable-notifications" )
250
250
if self .headless:
251
- options.add_argument(" --headless=chrome " )
251
+ options.add_argument(" --headless=new " )
252
252
options.add_argument(" --disable-gpu" )
253
253
options.add_experimental_option(
254
254
" excludeSwitches" , [" enable-automation" , " enable-logging" ],
@@ -310,7 +310,7 @@ def sb(request):
310
310
""" This method overrides get_new_driver() from BaseCase."""
311
311
options = webdriver.ChromeOptions()
312
312
if self .headless:
313
- options.add_argument(" --headless=chrome " )
313
+ options.add_argument(" --headless=new " )
314
314
options.add_argument(" --disable-gpu" )
315
315
options.add_experimental_option(
316
316
" excludeSwitches" , [" enable-automation" ],
@@ -361,7 +361,7 @@ def sb(request):
361
361
def get_new_driver (self , * args , ** kwargs ):
362
362
options = webdriver.ChromeOptions()
363
363
if " linux" in sys.platform:
364
- options.add_argument(" --headless=chrome " )
364
+ options.add_argument(" --headless=new " )
365
365
options.add_experimental_option(
366
366
" excludeSwitches" , [" enable-automation" ],
367
367
)
0 commit comments