fix cragr login
This commit is contained in:
parent
23328e4ce8
commit
525c8d3185
1 changed files with 2 additions and 4 deletions
|
|
@ -35,7 +35,5 @@ class CragrBasePage(BasePage):
|
|||
raise BrowserUnavailable()
|
||||
|
||||
def is_logged(self):
|
||||
for form in self.document.xpath('/html/body//form//input[@name = "code"]'):
|
||||
return False
|
||||
|
||||
return True
|
||||
return not self.document.xpath('/html/body//form//input[@name = "code"]') and \
|
||||
not self.document.xpath('/html/body//form//input[@name = "userPassword"]')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue