fix cragr login

This commit is contained in:
Christophe Benz 2010-11-30 13:18:49 +01:00
commit 525c8d3185

View file

@ -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"]')