From c04d88340ffb781a69c660ab7558bb0824e8b3f6 Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Wed, 20 Feb 2019 15:34:37 +0100 Subject: [PATCH] [binck] Handle ActionNeeded for password changing The url changed and the xpath too. Closes: 33297@sibi --- modules/binck/browser.py | 3 ++- modules/binck/pages.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/binck/browser.py b/modules/binck/browser.py index 3f822d0b4c..06bc026749 100644 --- a/modules/binck/browser.py +++ b/modules/binck/browser.py @@ -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: diff --git a/modules/binck/pages.py b/modules/binck/pages.py index c261b4423b..9ecae6a7cd 100644 --- a/modules/binck/pages.py +++ b/modules/binck/pages.py @@ -64,7 +64,7 @@ def on_load(self): 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) -- GitLab