Commit 5081f143 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[creditdunord] Fix home redirection

The patch adds strid params. Whithout the params the website is
frequently in error.

closes: 13847@sibi
parent 5f6b483b
......@@ -56,13 +56,14 @@ class CreditDuNordBrowser(LoginBrowser):
def home(self):
if self.is_logged():
self.location('/vos-comptes/%s' % self.account_type)
self.location('/vos-comptes/%s' % self.account_type, params=self.strid)
self.location('//a[contains(text(), "Synthèse")]')[0].attrib['href'])
def do_login(self):
self.login.go().login(self.username, self.password)
self.strid = {"strid":}
if self.accounts.is_here():
expired_error =
......@@ -134,7 +135,7 @@ class CreditDuNordBrowser(LoginBrowser):
if coming and account.type is not Account.TYPE_CARD or account.type is Account.TYPE_LOAN:
return []
self.location('/vos-comptes/%s' % self.account_type)
self.location('/vos-comptes/%s' % self.account_type, params=self.strid)
transactions = []
for tr in self.iter_transactions(account._link, account._args, account.type):
......@@ -30,6 +30,7 @@ from lxml import html
from weboob.browser.pages import HTMLPage, LoggedPage
from weboob.browser.elements import method, ItemElement
from weboob.browser.filters.standard import CleanText, Date, CleanDecimal, Regexp
from weboob.browser.filters.html import Attr
from weboob.exceptions import ActionNeeded, BrowserIncorrectPassword, BrowserUnavailable
from import Account, Investment
from weboob.capabilities.profile import Profile
......@@ -306,6 +307,9 @@ class AccountsPage(LoggedPage, CDNBasePage):
obj_name = CleanText('//p[@class="nom"]')
def get_strid(self):
return'(\d{4,})', Attr('//form[@name="changePageForm"]', 'action')(self.doc)).group(0)
class AVPage(LoggedPage, CDNBasePage):
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