handle error message when unable to login

This commit is contained in:
Romain Bignon 2012-09-15 11:04:49 +02:00
commit 4101ea9c3d
2 changed files with 11 additions and 4 deletions

View file

@ -85,4 +85,5 @@ class LoginPage(BasePage):
class BadLoginPage(BasePage):
pass
def get_error(self):
return self.document.xpath('//span[@class="error_msg"]')[0].text.strip()