From 81c3b04c7811da89c6eba9443721efb78a50a287 Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Mon, 20 May 2019 15:11:30 +0200 Subject: [PATCH] [caissedepargne] Corrected xpath to bypass QCF The xpath does not contain '/p/b/a' anymore, the 'p' has been removed. I replace it with '//' to go directly to 'b/a'. Closes: 41563@sibi, 41562@sibi --- modules/caissedepargne/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py index cf1faf46e0..fcfed545e8 100644 --- a/modules/caissedepargne/pages.py +++ b/modules/caissedepargne/pages.py @@ -208,7 +208,7 @@ def on_load(self): if 'OIC_QCF' in self.browser.url: # QCF is a mandatory test to make sure you know the basics about financials products # however, you can still choose to postpone it. hence the continue link - link = Link('//span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]')(self.doc) + link = Link('//span[@id="lea-prdvel-lien"]//b/a[contains(text(), "Continuer")]')(self.doc) if link: self.logger.warning("By-passing QCF") self.browser.location(link) -- GitLab