From 257c743f8dae1fe3c6a1d899da852b7b61c54986 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 24 Jul 2024 12:00:50 +0200 Subject: CI: Convert to forgejo --- selenium_eduvpn.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'selenium_eduvpn.py') diff --git a/selenium_eduvpn.py b/selenium_eduvpn.py index 605bc54..417b46c 100644 --- a/selenium_eduvpn.py +++ b/selenium_eduvpn.py @@ -8,9 +8,7 @@ from selenium.webdriver.firefox.options import Options def login_eduvpn(authURL): options = Options() - options.headless = True - - # Use the firefox driver + options.add_argument("-headless") driver = webdriver.Firefox(options=options) login_oauth(driver, authURL) @@ -23,6 +21,7 @@ def login_eduvpn(authURL): def login_oauth(driver, authURL): # Go to the oauth url and verify the title driver.get(authURL) + print(driver.title) assert "VPN Portal - Sign In" in driver.title # Get credentials @@ -52,6 +51,7 @@ def login_oauth(driver, authURL): ).click() # Check that we have reached the approve application page + print(driver.title) assert "VPN Portal - Approve Application" in driver.title # Click approve driver.find_element( -- cgit v1.2.3