handling already logged

This commit is contained in:
Vincent Paredes 2015-04-07 15:59:52 +02:00 committed by Romain Bignon
commit 630b274d5f
2 changed files with 8 additions and 3 deletions

View file

@ -45,6 +45,10 @@ class LoginPage(HTMLPage):
form['_cm_pwd'] = passwd
form.submit()
@property
def logged(self):
return self.doc.xpath('//div[@id="e_identification_ok"]')
class LoginErrorPage(HTMLPage):
pass