Update test_workflow.py
This commit is contained in:
parent
c2180df88f
commit
7ebd4033be
|
@ -23,17 +23,19 @@ def main():
|
||||||
|
|
||||||
if item.is_dir():
|
if item.is_dir():
|
||||||
if 'chrome-' in item.name:
|
if 'chrome-' in item.name:
|
||||||
|
|
||||||
logger.info('adding %s to PATH' % str(item))
|
logger.info('adding %s to PATH' % str(item))
|
||||||
logger.info('current PATH: %s' % str(os.environ.get('PATH')))
|
logger.info('current PATH: %s' % str(os.environ.get('PATH')))
|
||||||
path_list = os.environ['PATH'].split(os.pathsep)
|
path_list = os.environ['PATH'].split(os.pathsep)
|
||||||
path_list.insert(0, str(item))
|
path_list.insert(0, str(item))
|
||||||
os.environ['PATH'] = os.pathsep.join(path_list)
|
os.environ['PATH'] = os.pathsep.join(path_list)
|
||||||
logger.info('new PATH %s:' % str(os.environ.get('PATH')))
|
logger.info('new PATH %s:' % str(os.environ.get('PATH')))
|
||||||
|
browser_executable_path = str(item / 'chrome')
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
driver = uc.Chrome(headless=True)
|
driver = uc.Chrome(headless=True, browser_executable_path=browser_executable_path)
|
||||||
logging.getLogger().setLevel(20)
|
logging.getLogger().setLevel(20)
|
||||||
|
|
||||||
driver.get('https://www.nowsecure.nl')
|
driver.get('https://www.nowsecure.nl')
|
||||||
|
|
Loading…
Reference in New Issue