Commit a3f76c45 authored by Guillaume Risbourg's avatar Guillaume Risbourg Committed by Vincent A

[lcl] Handle new error when creating a new recipient

The new error is : Un numéro de téléphone enregistré est nécessaire afin
de vous envoyer un code de validation.
This wasn't handled by the previous `get_error` because it searched for
`code de connexion`.
parent 97afb12d
......@@ -1391,7 +1391,7 @@ class TransferPage(LoggedPage, HTMLPage):
class AddRecipientPage(LoggedPage, HTMLPage):
def get_error(self):
error = CleanText('//div[@id="attTxt"]', children=False)(self.doc)
if error and 'nécessaire afin de vous envoyer un code de connexion' in error:
if error and 'nécessaire afin de vous envoyer un code' in error:
return error
def validate(self, iban, label):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment