From bb34d7909533b60a8a5ee1affa3f9549287fb7ec Mon Sep 17 00:00:00 2001 From: Baptiste Delpey Date: Tue, 18 Aug 2015 11:20:02 +0200 Subject: [PATCH] axa stop parsing history of investment accounts --- modules/axabanque/pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/axabanque/pages.py b/modules/axabanque/pages.py index 9e0f9b13..ce1fa471 100644 --- a/modules/axabanque/pages.py +++ b/modules/axabanque/pages.py @@ -263,6 +263,9 @@ class TransactionsPage(BasePage): #DAT account can't have transaction if self.document.xpath('//table[@id="table-dat"]'): return + #These accounts have investments, no transactions + if self.document.xpath('//table[@id="InfosPortefeuille"]'): + return tables = self.document.xpath('//table[@id="table-detail-operation"]') if len(tables) == 0: tables = self.document.xpath('//table[@id="table-detail"]')