Add a transfer capability and implante it in bp and boobank
Make a transfer in boobank like that: >transfer fromaccountid toaccoundid amount Signed-off-by: Nicolas Duhamel <nicolas@jombi.fr> Signed-off-by: Romain Bignon <romain@peerfuse.org>
This commit is contained in:
parent
06cbda9d4d
commit
81706f23ad
4 changed files with 59 additions and 1 deletions
|
|
@ -183,8 +183,26 @@ class BPbrowser(object):
|
|||
|
||||
|
||||
|
||||
def make_transfer(self, from_account, to_account, amount):
|
||||
self.Browser.open("https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/f_virementSafran.jsp?n=11")
|
||||
self.Browser.open("https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/virementsafran/aiguillage/saisieComptes.ea")
|
||||
|
||||
self.Browser.select_form(name="AiguillageForm")
|
||||
self.Browser["idxCompteEmetteur"] = [from_account.id]
|
||||
self.Browser["idxCompteReceveur"] = [to_account.id]
|
||||
self.Browser.submit()
|
||||
|
||||
self.Browser.select_form(name="VirementNationalForm")
|
||||
self.Browser["montant"] = str(amount)
|
||||
self.Browser.submit()
|
||||
|
||||
#Confirmation
|
||||
# TODO: verifier que tout c'est bien passe
|
||||
self.Browser.open("https://voscomptesenligne.labanquepostale.fr/voscomptes/canalXHTML/virementsafran/virementnational/4-virementNational.ea")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue