fix parsing accounts on specific regions
This commit is contained in:
parent
7bd059b99b
commit
7c64ad162c
1 changed files with 3 additions and 1 deletions
|
|
@ -253,7 +253,9 @@ class AccountsPage(BasePage):
|
|||
for field in self.document.xpath('//input'):
|
||||
params[field.attrib['name']] = field.attrib.get('value', '')
|
||||
|
||||
for div in self.document.xpath('//div[@class="btit bnofil"]'):
|
||||
for div in self.document.getroot().cssselect('div.btit'):
|
||||
if div.text is None:
|
||||
continue
|
||||
account_type = self.ACCOUNT_TYPES.get(div.text.strip(), Account.TYPE_UNKNOWN)
|
||||
|
||||
if account_type is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue