From 94e9a7307e20f468692538e1a064fddeb4617ddc Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Thu, 21 Dec 2017 18:41:23 +0200 Subject: [PATCH 1/3] Use headless chrome in Travis Fixes #1016 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b914de6ed..6b82a45f5 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 From 33574358d0ff0020b984149afdf74c57689bf55d Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Thu, 21 Dec 2017 18:50:01 +0200 Subject: [PATCH 2/3] Make Firefox acceptance test to use Python 3.6 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6b82a45f5..4c8e18efe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 From e24be4b9e734c8bbe33a25c9eb509d8f275d6631 Mon Sep 17 00:00:00 2001 From: Tatu Aalto Date: Thu, 21 Dec 2017 18:50:32 +0200 Subject: [PATCH 3/3] Make test runner to support headless chrome in Travis --- test/run_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 '