Order charges xpath fix. Part of #1684
This commit is contained in:
parent
df53b12d4f
commit
fe254f3279
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ class OrderNewPage(AmazonPage):
|
|||
def amount(self, *names):
|
||||
return Decimal(sum(AmTr.decimal_amount(amount.strip())
|
||||
for n in names for amount in self.doc.xpath(
|
||||
'//span[contains(text(),"%s:")]/../..//span[2]/text()' % n)))
|
||||
'(//span[contains(text(),"%s:")]/../..//span)[2]/text()' % n)))
|
||||
|
||||
def transactions(self):
|
||||
for row in self.doc.xpath('//span[contains(text(),"Transactions")]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue