sgpe: Proper handling of login failure

Would create an infinite loop
This commit is contained in:
Laurent Bachelier 2013-07-24 15:02:04 +02:00
commit af824fde0f
2 changed files with 11 additions and 5 deletions

View file

@ -48,6 +48,11 @@ class SGPEPage(BasePage):
return err[0].text.strip()
class ErrorPage(SGPEPage):
def get_error(self):
return SGPEPage.get_error(self) or 'Unknown error'
class LoginPage(SGPEPage):
def login(self, login, password):
DOMAIN = self.browser.DOMAIN