robotframework-doctestlibrary
robotframework-doctestlibrary copied to clipboard
Disable Certificate check if Image is from URL
import ssl import urllib.request
ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE
with urllib.request.urlopen(url_string, context=ctx) as u,
open(file_name, 'wb') as f:
f.write(u.read())