diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-07-24 12:00:50 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-11-20 10:40:13 +0100 |
| commit | 257c743f8dae1fe3c6a1d899da852b7b61c54986 (patch) | |
| tree | 39374cd046e231a26ca0691a3328262e5e4b0c4e /selenium_eduvpn.py | |
| parent | c531015db65eb3e71b1fadfe51f9c107a7bf5216 (diff) | |
CI: Convert to forgejo
Diffstat (limited to 'selenium_eduvpn.py')
| -rw-r--r-- | selenium_eduvpn.py | 6 |
1 files changed, 3 insertions, 3 deletions
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( |
