diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a880afe..e120188 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y google-chrome-stable - pip install webdriver_manager + - name: Set up secrets as environment variables run: | diff --git a/features/environment.py b/features/environment.py index 2574312..8c6fa2b 100644 --- a/features/environment.py +++ b/features/environment.py @@ -40,10 +40,9 @@ def before_scenario(context, scenario): context.browser.delete_all_cookies() context.browser.maximize_window() else: - context.browser = webdriver.Chrome(executable_path=ChromeDriverManager().install()) + context.browser = webdriver.Chrome(ChromeDriverManager().install()) context.browser.delete_all_cookies() context.browser.maximize_window() - # else: # service = Service('drivers\chromedriver.exe') # context.browser = webdriver.Chrome(service=service) # context.browser.delete_all_cookies()