tests: Remove deprecated syntax for headless option

Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
Tobias Knöppler 2023-10-23 20:28:15 +02:00
parent 7dca1d6290
commit 2df558d242
No known key found for this signature in database
GPG Key ID: 3510056072886A8F
2 changed files with 4 additions and 4 deletions

View File

@ -163,13 +163,13 @@ if __name__ == "__main__":
sys.exit(2)
arg_timeout = 120
options = Options()
options = webdriver.FirefoxOptions()
for opt, arg in opts:
if opt in ('-h', '--help'):
usage()
sys.exit(2)
elif opt == '--no-gui':
options.headless = True
options.add_argument("-headless")
elif opt in ('-t', '--timeout'):
arg_timeout = int(arg)
else:

View File

@ -279,7 +279,7 @@ if __name__ == "__main__":
usage()
sys.exit(2)
options = Options()
options = webdriver.FirefoxOptions()
for opt, arg in opts:
if opt in ('-h', '--help'):
usage()
@ -288,7 +288,7 @@ if __name__ == "__main__":
if os.path.exists(test_cfg):
os.unlink(test_cfg)
elif opt == '--no-gui':
options.headless = True
options.add_argument("-headless")
else:
usage()
sys.exit(2)