fix: sometimes it is not possible to sort by value date in history
This commit is contained in:
parent
5ff52844a5
commit
efd514d232
1 changed files with 4 additions and 3 deletions
|
|
@ -123,9 +123,10 @@ class BanquePopulaire(BaseBrowser):
|
||||||
return
|
return
|
||||||
|
|
||||||
# Sort by values dates (see comment in TransactionsPage.get_history)
|
# Sort by values dates (see comment in TransactionsPage.get_history)
|
||||||
self.select_form(predicate=lambda form: form.attrs.get('id', '') == 'myForm')
|
if len(self.page.document.xpath('//a[@id="tcl4_srt"]')) > 0:
|
||||||
self.form.action = self.absurl('/cyber/internet/Sort.do?property=tbl1&sortBlocId=blc2&columnName=dateValeur')
|
self.select_form(predicate=lambda form: form.attrs.get('id', '') == 'myForm')
|
||||||
self.submit()
|
self.form.action = self.absurl('/cyber/internet/Sort.do?property=tbl1&sortBlocId=blc2&columnName=dateValeur')
|
||||||
|
self.submit()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
assert self.is_on_page(TransactionsPage)
|
assert self.is_on_page(TransactionsPage)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue