mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update bans page test check
This commit is contained in:
parent
7120dc1cad
commit
1cd1fa7ef9
1 changed files with 3 additions and 3 deletions
|
|
@ -16,9 +16,9 @@ try:
|
|||
log_info("Navigating to the bans page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[9]/a", "bans")
|
||||
|
||||
try:
|
||||
safe_get_element(DRIVER, By.XPATH, "/html/body/main/div/div[2]/div/h5", error=True)
|
||||
except TimeoutException:
|
||||
is_ban_list_hidden = DRIVER.execute_script("return document.querySelector('[data-bans-list-container]').classList.contains('hidden')")
|
||||
|
||||
if not is_ban_list_hidden:
|
||||
log_exception("Bans present even though they shouldn't be, exiting ...")
|
||||
exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue