Commit e81dae78 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Vincent A

[creditmutuel] Allows " in subcription id

the %s method is not compatible with " . Exemple of subscription id:
SCI "18 B Name "

Closes: 38139@sibi 11531@zendesk
parent a1e793d6
......@@ -1846,7 +1846,7 @@ class SubscriptionPage(LoggedPage, HTMLPage):
options = self.doc.xpath('//select[@id="SelTiers"]/option')
if options:
for opt in options:
subscriber = self.doc.xpath('//select[@id="SelTiers"]/option[contains(text(), "%s")]' % CleanText('.')(opt))[0]
subscriber = self.doc.xpath('//select[@id="SelTiers"]/option[contains(text(), $subscriber)]', subscriber=CleanText('.')(opt))[0]
self.submit_form(Attr('.', 'value')(subscriber))
for sub in self.get_subscriptions(subscription_list, subscriber):
yield sub
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