mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
tests: Remove deprecated syntax for headless option
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
7dca1d6290
commit
2df558d242
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user