Skip to content

Commit fe81ab2

Browse files
committed
Update documentation
1 parent ad62cca commit fe81ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

help_docs/syntax_formats.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class OverrideDriverTest(BaseCase):
248248
options.add_argument("--disable-3d-apis")
249249
options.add_argument("--disable-notifications")
250250
if self.headless:
251-
options.add_argument("--headless=chrome")
251+
options.add_argument("--headless=new")
252252
options.add_argument("--disable-gpu")
253253
options.add_experimental_option(
254254
"excludeSwitches", ["enable-automation", "enable-logging"],
@@ -310,7 +310,7 @@ def sb(request):
310310
"""This method overrides get_new_driver() from BaseCase."""
311311
options = webdriver.ChromeOptions()
312312
if self.headless:
313-
options.add_argument("--headless=chrome")
313+
options.add_argument("--headless=new")
314314
options.add_argument("--disable-gpu")
315315
options.add_experimental_option(
316316
"excludeSwitches", ["enable-automation"],
@@ -361,7 +361,7 @@ def sb(request):
361361
def get_new_driver(self, *args, **kwargs):
362362
options = webdriver.ChromeOptions()
363363
if "linux" in sys.platform:
364-
options.add_argument("--headless=chrome")
364+
options.add_argument("--headless=new")
365365
options.add_experimental_option(
366366
"excludeSwitches", ["enable-automation"],
367367
)

0 commit comments

Comments
 (0)