diff --git a/modules/ing/browser.py b/modules/ing/browser.py index 62f7f5fa..8ecb4523 100644 --- a/modules/ing/browser.py +++ b/modules/ing/browser.py @@ -146,7 +146,7 @@ class Ing(BaseBrowser): self.page.transfer(recipient, amount, reason) self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf') if not self.is_on_page(TransferConfirmPage): - raise TransferError("Recipient not found") + raise TransferError("Invalid transfer (no confirmation page)") else: self.page.confirm(self.password) self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf') diff --git a/modules/ing/pages/transfer.py b/modules/ing/pages/transfer.py index 30b1b8c6..189f20df 100644 --- a/modules/ing/pages/transfer.py +++ b/modules/ing/pages/transfer.py @@ -160,8 +160,6 @@ class TransferConfirmPage(BasePage): if font.attrib.get('class') == "vide": realpasswd += password[i] i += 1 - # TODO: trouver le bon formulaire, y'en a plein la page... - # Puis copier le code de login.py confirmform = None for form in self.document.xpath('//form'): try: