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()
|
raise BrowserUnavailable()
|
||||||
|
|
||||||
def is_logged(self):
|
def is_logged(self):
|
||||||
for form in self.document.xpath('/html/body//form//input[@name = "code"]'):
|
return not self.document.xpath('/html/body//form//input[@name = "code"]') and \
|
||||||
return False
|
not self.document.xpath('/html/body//form//input[@name = "userPassword"]')
|
||||||
|
|
||||||
return True
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue