handle expired password

This commit is contained in:
Vincent Paredes 2015-03-09 10:52:12 +01:00 committed by Romain Bignon
commit a833a3e328
2 changed files with 10 additions and 0 deletions

View file

@ -33,6 +33,9 @@ class BasePage(_BasePage):
def get_view_state(self):
return self.document.xpath('//input[@name="javax.faces.ViewState"]')[0].attrib['value']
def is_password_expired(self):
return len(self.document.xpath('//div[@id="popup_client_modifier_code_confidentiel"]'))
class UnavailablePage(BasePage):
def on_loaded(self):