From 185c7a00cf11cf9c1347ec6e788830a647c8ce6f Mon Sep 17 00:00:00 2001 From: Damien Mat Date: Wed, 5 Feb 2020 16:21:35 +0100 Subject: [PATCH] [creditmutuel] Fix is_here() Was True even when it shouldn't and was mentionning proprietary module --- modules/creditmutuel/pages.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/creditmutuel/pages.py b/modules/creditmutuel/pages.py index f9d298d858..6265a43df5 100644 --- a/modules/creditmutuel/pages.py +++ b/modules/creditmutuel/pages.py @@ -125,11 +125,10 @@ class FiscalityConfirmationPage(LoggedPage, HTMLPage): # and might be empty of text while used in a redirection class MobileConfirmationPage(PartialHTMLPage): def is_here(self): - return { + return ( 'Démarrez votre application mobile' in CleanText('//div[contains(@id, "inMobileAppMessage")]')(self.doc) or - # for Banque Transatlantique and BECM 'demande de confirmation mobile' in CleanText('//div[contains(@id, "inMobileAppMessage")]')(self.doc) - } + ) # We land on this page for some connections, but can still bypass this verification for now def check_bypass(self): -- GitLab