When balance is zero, paypal add a class to the div

This commit is contained in:
Vincent Paredes 2014-11-24 16:16:37 +01:00 committed by Romain Bignon
commit 8ce5602a72

View file

@ -39,7 +39,7 @@ class NewAccountPage(Page):
# Primary currency account
primary_account = Account()
primary_account.type = Account.TYPE_CHECKING
balance = self.parser.tocleanstring(content.xpath('.//div[contains(@class, "col-md-6 available")]')[0])
balance = self.parser.tocleanstring(content.xpath('//div[contains(@class, "col-md-6")][contains(@class, "available")]')[0])
primary_account.currency = Account.get_currency(balance)
primary_account.id = unicode(primary_account.currency)