fix: changed login test selector to not break
This is just to make sure we don't try and look for an element that doesn't exist for every user.
This commit is contained in:
8
main.py
8
main.py
@ -34,13 +34,9 @@ class BaseTester:
|
||||
submit.click()
|
||||
|
||||
# Wait for the js elements load so we know the cookies are good.
|
||||
# Waits for "Recent Items" part of sidebar which is unique when logged in
|
||||
self.wait.until(
|
||||
EC.visibility_of_element_located(
|
||||
(
|
||||
By.CSS_SELECTOR,
|
||||
"#widget-6 > div:nth-child(1) > div:nth-child(1) > h3:nth-child(4)"
|
||||
)
|
||||
)
|
||||
EC.visibility_of_element_located((By.ID, "block-civicrm-2"))
|
||||
)
|
||||
|
||||
def logout(self):
|
||||
|
Reference in New Issue
Block a user