Fix low balance listing
When the balance is low, the span class is "low-balance" and not balance. Use 'contain' to be more robust
This commit is contained in:
parent
98b637ec4a
commit
31f206e697
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class HomePage(LoggedPage, HTMLPage):
|
|||
klass = Subscription
|
||||
|
||||
obj_id = CleanText('//span[@class="welcome-text"]/b')
|
||||
obj__balance = CleanDecimal(CleanText('//span[@class="balance"]'), replace_dots=False)
|
||||
obj__balance = CleanDecimal(CleanText('//span[contains(@class, "balance")]'), replace_dots=False)
|
||||
obj_label = Format(u"Poivy - %s - %s €", Field('id'), Field('_balance'))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue