Commit fbc33aab authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[binck] Skip new questions page

Page content: Questionnaires obligatoires
Ce questionnaire vous est proposé dans votre intérêt afin de vous fournir un service d'investissement adapté.

Closes: 33297@sibi
parent c04d8834
......@@ -56,7 +56,8 @@ class BinckBrowser(LoginBrowser):
history = URL(r'/TransactionsOverview/GetTransactions',
r'/TransactionsOverview/FilteredOverview', HistoryPage)
questions = URL(r'/FDL_Complex_FR_Compte', QuestionPage)
questions = URL(r'/FDL_Complex_FR_Compte',
r'FsmaMandatoryQuestionnairesOverview', QuestionPage)
change_pass = URL(r'/ChangePassword/Index',
r'/EditSetting/GetSetting\?code=MutationPassword', ChangePassPage)
......
......@@ -40,7 +40,10 @@ def MyDecimal(*args, **kwargs):
class QuestionPage(HTMLPage):
def on_load(self):
form = self.get_form('//form[@action="/FDL_Complex_FR_Compte/Introduction/SkipQuestionnaire"]')
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.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