Repalce ex_acc with existing_accounts_tab. Why? Less vague.

SeleniumIbrahimUpdate-Ibrahim
Lan Hui 2021-11-30 21:49:51 +08:00
parent 6c6e60aac2
commit 93a7661103
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ if ($_SESSION['user_type'] != "Lecturer") {
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#menu1" id="ex_acc">Existing Accounts</a>
<a class="nav-link" data-toggle="tab" href="#menu1" id="existing_accounts_tab">Existing Accounts</a>
</li>
</ul>

View File

@ -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