PagesBrowser.open and PagesBrowser.location always return a Response object
This commit is contained in:
parent
8292eadaee
commit
bf8675c88b
3 changed files with 27 additions and 21 deletions
|
|
@ -130,7 +130,7 @@ class AccountsPage(LoggedPage, HTMLPage):
|
|||
self.env['id'] = id
|
||||
|
||||
# Handle real balances
|
||||
page = self.page.browser.open(link)
|
||||
page = self.page.browser.open(link).page
|
||||
coming = page.find_amount(u"Opérations à venir")
|
||||
accounting = page.find_amount(u"Solde comptable")
|
||||
|
||||
|
|
@ -242,7 +242,7 @@ class CardPage(OperationsPage, LoggedPage):
|
|||
def __iter__(self):
|
||||
card_link = self.el.get('href')
|
||||
history_url = '%s/%s/fr/banque/%s' % (self.page.browser.BASEURL, self.page.browser.currentSubBank, card_link)
|
||||
page = self.page.browser.location(history_url)
|
||||
page = self.page.browser.location(history_url).page
|
||||
|
||||
for op in page.get_history():
|
||||
yield op
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue