sgpe: Proper handling of login failure
Would create an infinite loop
This commit is contained in:
parent
caa84dbf2c
commit
af824fde0f
2 changed files with 11 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue