Better error message
This commit is contained in:
parent
c861da55f9
commit
52493ca98b
2 changed files with 1 additions and 3 deletions
|
|
@ -146,7 +146,7 @@ class Ing(BaseBrowser):
|
||||||
self.page.transfer(recipient, amount, reason)
|
self.page.transfer(recipient, amount, reason)
|
||||||
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')
|
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')
|
||||||
if not self.is_on_page(TransferConfirmPage):
|
if not self.is_on_page(TransferConfirmPage):
|
||||||
raise TransferError("Recipient not found")
|
raise TransferError("Invalid transfer (no confirmation page)")
|
||||||
else:
|
else:
|
||||||
self.page.confirm(self.password)
|
self.page.confirm(self.password)
|
||||||
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')
|
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')
|
||||||
|
|
|
||||||
|
|
@ -160,8 +160,6 @@ class TransferConfirmPage(BasePage):
|
||||||
if font.attrib.get('class') == "vide":
|
if font.attrib.get('class') == "vide":
|
||||||
realpasswd += password[i]
|
realpasswd += password[i]
|
||||||
i += 1
|
i += 1
|
||||||
# TODO: trouver le bon formulaire, y'en a plein la page...
|
|
||||||
# Puis copier le code de login.py
|
|
||||||
confirmform = None
|
confirmform = None
|
||||||
for form in self.document.xpath('//form'):
|
for form in self.document.xpath('//form'):
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue