From 93a76611032c879518bb10a9433eeffe0908ed58 Mon Sep 17 00:00:00 2001 From: Lan Hui <1348141770@qq.com> Date: Tue, 30 Nov 2021 21:49:51 +0800 Subject: [PATCH] Repalce ex_acc with existing_accounts_tab. Why? Less vague. --- Admin.php | 2 +- test/SeleniumIbrahim/test_kit/admin.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Admin.php b/Admin.php index ea0bfac..9e6865a 100644 --- a/Admin.php +++ b/Admin.php @@ -55,7 +55,7 @@ if ($_SESSION['user_type'] != "Lecturer") { diff --git a/test/SeleniumIbrahim/test_kit/admin.py b/test/SeleniumIbrahim/test_kit/admin.py index cd25934..47e3e5c 100644 --- a/test/SeleniumIbrahim/test_kit/admin.py +++ b/test/SeleniumIbrahim/test_kit/admin.py @@ -144,7 +144,7 @@ class Admin(Actor): #Navigate to "Exisitin Accounts" table wait2 = WebDriverWait(driver, 10) - exist_acc_tab = wait2.until(EC.presence_of_element_located((By.ID, "ex_acc"))) + exist_acc_tab = wait2.until(EC.presence_of_element_located((By.ID, "existing_accounts_tab"))) exist_acc_tab.click() #Alternate between block and activate @@ -211,4 +211,4 @@ class Admin(Actor): self.utility.log_error(err_msg) print("Treminating session") self.utility.killSession(driver) - return 1 \ No newline at end of file + return 1