diff --git a/modules/creditmutuel/browser.py b/modules/creditmutuel/browser.py index 4d3eb085eae94e45637dafd5c2363ed843ca7473..7785f3b5f672666e6251cf421a5753800e4ee917 100644 --- a/modules/creditmutuel/browser.py +++ b/modules/creditmutuel/browser.py @@ -655,13 +655,13 @@ def list_operations(self, page, account): # Need to reach the page with all transactions if not self.page.has_more_operations(): break - form = self.page.get_form(id="I1:P:F") + form = self.page.get_form(xpath='//form[contains(@action, "_pid=AccountMasterDetail")]') form['_FID_DoLoadMoreTransactions'] = '' form['_wxf2_pseq'] = page form.submit() # IndexError when form xpath returns [], StopIteration if next called on empty iterable except (StopIteration, FormNotFound): - self.logger.warning('Could not get history on new website') + self.logger.warning('Could not get more history on new website') except IndexError: # 6 months history is not available pass