diff --git a/.travis.yml b/.travis.yml index b914de6ed..4c8e18efe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ matrix: include: - python: "3.6" env: - - BROWSER=chrome + - BROWSER=headlesschrome - SELENIUM=3.8.0 - ROBOTFRAMEWORK=3.0.2 - ROBOT_OPTIONS=--dotted @@ -52,7 +52,7 @@ matrix: - SELENIUM=2.53.6 - ROBOTFRAMEWORK=3.0.2 - ROBOT_OPTIONS=--dotted - - python: "3.3" + - python: "3.6" env: - BROWSER=firefox - SELENIUM=3.8.0 diff --git a/test/run_tests.py b/test/run_tests.py index aeb03a68e..051eab1b6 100755 --- a/test/run_tests.py +++ b/test/run_tests.py @@ -216,7 +216,9 @@ def sauce_credentials(sauce_username, sauce_key): ) args, rf_options = parser.parse_known_args() browser = args.browser.lower().strip() - if TRAVIS and browser not in ['chrome', 'firefox'] and TRAVIS_EVENT_TYPE != 'cron': + if (TRAVIS and browser not in ['chrome', 'firefox', 'headlesschrome'] and + TRAVIS_EVENT_TYPE != 'cron'): + # When running in only Chrome and Firefox are available. print( 'Can not run test with browser "{}" from SauceLabs with PR.\n' 'SauceLabs can be used only when running with cron and from '