tests: Update CORS geckodriver
Change-Id: I5ab762dfe0f85e346c4868ec4540884ba5f0a7f4
This commit is contained in:
parent
b6dc24dbc0
commit
af15ad53fb
@ -194,8 +194,12 @@ def run(args, url):
|
|||||||
try:
|
try:
|
||||||
browser = driver(**kwargs)
|
browser = driver(**kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if not ('needs to be in PATH' in str(e) or
|
if not any(x in str(e) for x in (
|
||||||
'SafariDriver was not found' in str(e)):
|
'needs to be in PATH',
|
||||||
|
'SafariDriver was not found',
|
||||||
|
'OSError: [Errno 8] Exec format error',
|
||||||
|
'safaridriver not available for download',
|
||||||
|
)):
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
results.append(('SKIP', browser_name, str(e).strip()))
|
results.append(('SKIP', browser_name, str(e).strip()))
|
||||||
continue
|
continue
|
||||||
|
@ -15,13 +15,15 @@
|
|||||||
state: present
|
state: present
|
||||||
- name: fetch firefox driver
|
- name: fetch firefox driver
|
||||||
get_url:
|
get_url:
|
||||||
url: https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
|
url: https://github.com/mozilla/geckodriver/releases/download/v0.34.0/geckodriver-v0.34.0-linux64.tar.gz
|
||||||
dest: /tmp/geckodriver.tar.gz
|
dest: /tmp/geckodriver.tar.gz
|
||||||
- name: unpack firefox driver
|
- name: unpack firefox driver
|
||||||
unarchive:
|
unarchive:
|
||||||
src: /tmp/geckodriver.tar.gz
|
src: /tmp/geckodriver.tar.gz
|
||||||
dest: /usr/local/bin
|
dest: /usr/local/bin
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
- name: check selenium version
|
||||||
|
command: pip show selenium
|
||||||
- name: check firefox version
|
- name: check firefox version
|
||||||
command: firefox --version
|
command: firefox --version
|
||||||
#- name: install chromium
|
#- name: install chromium
|
||||||
|
Loading…
x
Reference in New Issue
Block a user