Commit 75232d92 authored by Damien Mat's avatar Damien Mat Committed by ntome

[binck] Added an url and a form xpath to handle questionnaire to skip at login

Closes: 12918@zendesk
parent 5baa3d5e
......@@ -59,6 +59,7 @@ class BinckBrowser(LoginBrowser):
history = URL(r'/TransactionsOverview/GetTransactions',
r'/TransactionsOverview/FilteredOverview', HistoryPage)
questions = URL(r'/FDL_Complex_FR_Compte',
r'/FDL_NonComplex_FR_Compte',
r'FsmaMandatoryQuestionnairesOverview', QuestionPage)
change_pass = URL(r'/ChangePassword/Index',
r'/EditSetting/GetSetting\?code=MutationPassword', ChangePassPage)
......
......@@ -43,7 +43,7 @@ class QuestionPage(HTMLPage):
if self.doc.xpath(u'//h1[contains(text(), "Questionnaires connaissance et expérience")]'):
form = self.get_form('//form[@action="/FsmaMandatoryQuestionnairesOverview/PostponeQuestionnaires"]')
else:
form = self.get_form('//form[@action="/FDL_Complex_FR_Compte/Introduction/SkipQuestionnaire"]')
form = self.get_form('//form[contains(@action, "Complex_FR_Compte/Introduction/SkipQuestionnaire")]')
form.submit()
......
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