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): ...@@ -57,7 +57,8 @@ class BinckBrowser(LoginBrowser):
history = URL(r'/TransactionsOverview/GetTransactions', history = URL(r'/TransactionsOverview/GetTransactions',
r'/TransactionsOverview/FilteredOverview', HistoryPage) r'/TransactionsOverview/FilteredOverview', HistoryPage)
questions = URL(r'/FDL_Complex_FR_Compte', QuestionPage) 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): def deinit(self):
if and if and
...@@ -64,7 +64,7 @@ class HomePage(LoggedPage, HTMLPage): ...@@ -64,7 +64,7 @@ class HomePage(LoggedPage, HTMLPage):
class ChangePassPage(LoggedPage, HTMLPage): class ChangePassPage(LoggedPage, HTMLPage):
def on_load(self): def on_load(self):
message = CleanText('//h3')(self.doc) message = CleanText('//h3')(self.doc) or CleanText('//h1')(self.doc)
raise BrowserPasswordExpired(message) 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