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:
parent
ee1cd692da
commit
89016f2347
8
main.py
8
main.py
@ -34,13 +34,9 @@ class BaseTester:
|
|||||||
submit.click()
|
submit.click()
|
||||||
|
|
||||||
# Wait for the js elements load so we know the cookies are good.
|
# 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(
|
self.wait.until(
|
||||||
EC.visibility_of_element_located(
|
EC.visibility_of_element_located((By.ID, "block-civicrm-2"))
|
||||||
(
|
|
||||||
By.CSS_SELECTOR,
|
|
||||||
"#widget-6 > div:nth-child(1) > div:nth-child(1) > h3:nth-child(4)"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
def logout(self):
|
def logout(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user