From 107f8769dffaab84fa61a34a5d5d96d057243fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9lande=20Adrien?= Date: Fri, 13 Apr 2018 15:06:25 +0200 Subject: [PATCH] [humanis] no history if no transaction It now looks for a message in the table. Closes: 625530@redmine Closes: 626587@redmine Closes: 625354@redmine Closes: 625683@redmine --- modules/cmes/pages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/cmes/pages.py b/modules/cmes/pages.py index fd8e49caaf..1500f753d4 100644 --- a/modules/cmes/pages.py +++ b/modules/cmes/pages.py @@ -186,6 +186,9 @@ class iter_history(TableElement): next_page = Link('//a[contains(@href, "Suiv")]', default=None) + def condition(self): + return not CleanText('//td[contains(@class, "vide") and contains(text(), "Aucune op")]')(self) + class item(ItemElement): klass = Transaction -- GitLab