check when the account is blocked
This commit is contained in:
parent
738ddc9c60
commit
c63fcc8c7d
1 changed files with 5 additions and 0 deletions
|
|
@ -30,6 +30,11 @@ class PageBase(BasePage):
|
|||
if div.getAttribute('id') == 'oops':
|
||||
raise BrowserUnavailable()
|
||||
|
||||
# Check when the account is temporarily blocked.
|
||||
for img in self.document.getElementsByTagName('img'):
|
||||
if img.getAttribute('src') == 'http://s.adopteunmec.com/img/exemple.jpg':
|
||||
raise BrowserUnavailable('Your account is blocked. You have to unblock by yourself but we can\'t help you.')
|
||||
|
||||
def open_contact_list_page(self):
|
||||
self.browser.follow_link(url_regex=r"/mails.php$")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue