From 2ce0aa95b279d2f9234495bf727538ca0183e8c4 Mon Sep 17 00:00:00 2001 From: Lan Hui Date: Tue, 20 May 2025 07:46:33 +0800 Subject: [PATCH] Helper function logout() does not work anymore with the new SecurityQuestions page. So use URL instead. --- test/SeleniumHui/test_lrr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/SeleniumHui/test_lrr.py b/test/SeleniumHui/test_lrr.py index ea4d6ba..b9a9234 100644 --- a/test/SeleniumHui/test_lrr.py +++ b/test/SeleniumHui/test_lrr.py @@ -160,7 +160,7 @@ def test_student_with_valid_student_number_can_sign_up(driver, url, restore_data elem.send_keys('[123Abc]') elem = driver.find_element(By.ID, 'signup_btn') elem.click() - logout(driver) + driver.get(url + 'logout.php') # Log in Student account login(driver, url, '202400000001', '[123Abc]')