Fix transfer, and real test on empty list
This commit is contained in:
parent
a66bc85b45
commit
7b2f9039d4
1 changed files with 3 additions and 2 deletions
|
|
@ -64,9 +64,10 @@ class TransferPage(BasePage):
|
|||
def ischecked(self, account):
|
||||
id = account.id
|
||||
# remove prefix (CC-, LA-, ...)
|
||||
id = id[3:]
|
||||
if "-" in id:
|
||||
id = id.split('-')[1]
|
||||
option = self.document.xpath('//input[@value="%s"]' % id)
|
||||
if len(option) < 0:
|
||||
if len(option) == 0:
|
||||
raise AccountNotFound()
|
||||
else:
|
||||
option = option[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue