Skip to content
Snippets Groups Projects
Commit 70b9c3c4 authored by Marco Malavolti's avatar Marco Malavolti
Browse files

Fixed Chrome Webdriver problem and robots.txt on HTTP

parent d93f3ae5
Branches
Tags
No related merge requests found
......@@ -119,7 +119,7 @@ def checkIdP(sp,idp,test):
robots = requests.get("https://%s/robots.txt" % fqdn_idp, headers=headers, verify=True, timeout=ECCS2REQUESTSTIMEOUT)
if (robots == ""):
robots = requests.get("http://%s/robots.txt" % fqdn_idp, headers=headers, verify=True, timeout=ECCS2REQUESTSTIMEOUT)
robots = requests.get("http://%s/robots.txt" % fqdn_idp, headers=headers, verify=False, timeout=ECCS2REQUESTSTIMEOUT)
# Catch SSL Exceptions and block the ECCS check
except (requests.exceptions.SSLError) as e:
......
......@@ -121,6 +121,7 @@ def getDriver(fqdn_idp=None,debugSelenium=False):
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument('--ignore-certificate-errors')
chrome_options.add_argument('--remote-debugging-port=9222')
#chrome_options.add_argument('--start-maximized')
# For DEBUG only (By default ChromeDriver logs only warnings/errors to stderr.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment