mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
tests: functional: Update detecting page changes
Several tests failed randomly (on a slightly slow machine) while trying to detect that a page change has occurred. Workaround this by handling the exception thrown. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
fcbcf1775c
commit
4be7ce0f5d
@ -94,7 +94,7 @@ class _PageLoaded():
|
|||||||
is_stale = False
|
is_stale = False
|
||||||
try:
|
try:
|
||||||
self.element.has_class('whatever_class')
|
self.element.has_class('whatever_class')
|
||||||
except StaleElementReferenceException:
|
except (StaleElementReferenceException, TypeError):
|
||||||
# After a domain name change, Let's Encrypt will restart the web
|
# After a domain name change, Let's Encrypt will restart the web
|
||||||
# server and could cause a connection failure.
|
# server and could cause a connection failure.
|
||||||
if driver.find_by_id('netErrorButtonContainer'):
|
if driver.find_by_id('netErrorButtonContainer'):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user