oney change get_balance xpath
This commit is contained in:
parent
91041a33bc
commit
53f430286c
1 changed files with 2 additions and 1 deletions
|
|
@ -121,7 +121,8 @@ class IndexPage(LoggedPage, HTMLPage):
|
|||
is_here = "//div[@id='situation']"
|
||||
|
||||
def get_balance(self):
|
||||
return -CleanDecimal('.', replace_dots=True)(self.doc.xpath('//div[@id = "total-sommes-dues"]/p[contains(text(), "sommes dues")]/span[@class = "montant"]')[0])
|
||||
return -CleanDecimal('.', replace_dots=True)(self.doc.xpath('//div[@class = "synthese-produit"]/p[@class = "somme-due"]/span[@class = "synthese-montant"] | \
|
||||
//div[@id = "total-sommes-dues"]/p[contains(text(), "sommes dues")]/span[@class = "montant"]')[0])
|
||||
|
||||
|
||||
class OperationsPage(LoggedPage, HTMLPage):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue