Fixed #30220 -- Added support for headless mode in selenium tests.

This commit is contained in:
Johannes Hoppe 2019-02-26 17:23:49 +01:00 committed by Mariusz Felisiak
parent e286987a27
commit 8d010f3986
4 changed files with 27 additions and 1 deletions

View file

@ -446,6 +446,10 @@ if __name__ == "__main__":
'--selenium', action=ActionSelenium, metavar='BROWSERS',
help='A comma-separated list of browsers to run the Selenium tests against.',
)
parser.add_argument(
'--headless', action='store_true',
help='Run selenium tests in headless mode, if the browser supports the option.',
)
parser.add_argument(
'--selenium-hub',
help='A URL for a selenium hub instance to use in combination with --selenium.',
@ -506,6 +510,7 @@ if __name__ == "__main__":
if options.selenium_hub:
SeleniumTestCaseBase.selenium_hub = options.selenium_hub
SeleniumTestCaseBase.external_host = options.external_host
SeleniumTestCaseBase.headless = options.headless
SeleniumTestCaseBase.browsers = options.selenium
if options.bisect: