Enabled relaxed security

This commit is contained in:
butomo1989
2018-06-20 23:30:54 +02:00
parent 15f6541621
commit ab34ca36d9
2 changed files with 12 additions and 2 deletions
+5
View File
@@ -108,6 +108,11 @@ def appium_run(avd_name: str):
DEFAULT_LOG_PATH = '/var/log/supervisor/appium.log'
cmd = 'appium --log {log}'.format(log=os.getenv('APPIUM_LOG', DEFAULT_LOG_PATH))
relaxed_security = convert_str_to_bool(str(os.getenv('RELAXED_SECURITY', False)))
logger.info('Relaxed security? {rs}'.format(rs=relaxed_security))
if relaxed_security:
cmd += ' --relaxed-security'
default_web_browser = os.getenv('BROWSER')
if default_web_browser == 'chrome':
cmd += ' --chromedriver-executable {driver}'.format(driver=CHROME_DRIVER)