handle expired password
This commit is contained in:
parent
15b9e1d10c
commit
a833a3e328
2 changed files with 10 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue