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>
<li class="nav-item"> <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> </li>
</ul> </ul>

View File

@ -144,7 +144,7 @@ class Admin(Actor):
#Navigate to "Exisitin Accounts" table #Navigate to "Exisitin Accounts" table
wait2 = WebDriverWait(driver, 10) 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() exist_acc_tab.click()
#Alternate between block and activate #Alternate between block and activate
@ -211,4 +211,4 @@ class Admin(Actor):
self.utility.log_error(err_msg) self.utility.log_error(err_msg)
print("Treminating session") print("Treminating session")
self.utility.killSession(driver) self.utility.killSession(driver)
return 1 return 1