Commit 81c3b04c authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by Romain Bignon

[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
parent e8e789a8
......@@ -208,7 +208,7 @@ class IndexPage(LoggedPage, HTMLPage):
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")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment