Update test_workflow.py

This commit is contained in:
Leon 2023-06-03 01:47:52 +02:00 committed by GitHub
parent 6452781268
commit dc56f5b33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import undetected_chromedriver as uc
from pathlib import Path from pathlib import Path
logging.basicConfig(level=20) logging.basicConfig(level=10)
logger = logging.getLogger('test') logger = logging.getLogger('test')
def main(): def main():
@ -28,7 +28,11 @@ def main():
os.environ['PATH'] = os.pathsep.join(path_list) os.environ['PATH'] = os.pathsep.join(path_list)
break break
driver = uc.Chrome(headless=True) driver = uc.Chrome(headless=True)
logging.getLogger().setLevel(20)
driver.get('https://www.nowsecure.nl') driver.get('https://www.nowsecure.nl')
print(driver.current_url) print(driver.current_url)