Commit c04d8834 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[binck] Handle ActionNeeded for password changing

The url changed and the xpath too.

Closes: 33297@sibi
parent 1d394032
......@@ -57,7 +57,8 @@ class BinckBrowser(LoginBrowser):
history = URL(r'/TransactionsOverview/GetTransactions',
r'/TransactionsOverview/FilteredOverview', HistoryPage)
questions = URL(r'/FDL_Complex_FR_Compte', QuestionPage)
change_pass = URL(r'/ChangePassword/Index', ChangePassPage)
change_pass = URL(r'/ChangePassword/Index',
r'/EditSetting/GetSetting\?code=MutationPassword', ChangePassPage)
def deinit(self):
if self.page and self.page.logged:
......
......@@ -64,7 +64,7 @@ class HomePage(LoggedPage, HTMLPage):
class ChangePassPage(LoggedPage, HTMLPage):
def on_load(self):
message = CleanText('//h3')(self.doc)
message = CleanText('//h3')(self.doc) or CleanText('//h1')(self.doc)
raise BrowserPasswordExpired(message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment