Fix recipient list
This commit is contained in:
parent
1689f29212
commit
ef61b4148e
1 changed files with 11 additions and 9 deletions
|
|
@ -41,7 +41,8 @@ class TransferPage(BasePage):
|
||||||
tds = tr.xpath('td')
|
tds = tr.xpath('td')
|
||||||
id = tds[0].xpath('input')[0].attrib['value']
|
id = tds[0].xpath('input')[0].attrib['value']
|
||||||
name = tds[0].xpath('label')[0].text
|
name = tds[0].xpath('label')[0].text
|
||||||
name += u" " + tds[1].xpath('span')[0].text
|
name += u" " + tds[1].xpath('label')[0].text.replace('\n', '')
|
||||||
|
name += u" " + tds[2].xpath('label')[0].text.replace('\n', '')
|
||||||
recipient = Recipient()
|
recipient = Recipient()
|
||||||
recipient.id = id
|
recipient.id = id
|
||||||
recipient.label = name
|
recipient.label = name
|
||||||
|
|
@ -50,6 +51,7 @@ class TransferPage(BasePage):
|
||||||
|
|
||||||
# Second, externals recipients
|
# Second, externals recipients
|
||||||
select = self.document.xpath('//select[@id="transfer_form:externalAccounts"]')
|
select = self.document.xpath('//select[@id="transfer_form:externalAccounts"]')
|
||||||
|
if len(select) > 0:
|
||||||
recipients = select[0].xpath('option')
|
recipients = select[0].xpath('option')
|
||||||
recipients.pop(0)
|
recipients.pop(0)
|
||||||
for option in recipients:
|
for option in recipients:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue