handling promo page for new paypal application
This commit is contained in:
parent
bea3537c1a
commit
ea8dacd70f
2 changed files with 9 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ from mechanize import Cookie
|
|||
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.deprecated.browser import Page
|
||||
from weboob.deprecated.browser import Page, BrowserUnavailable
|
||||
from weboob.deprecated.mech import ClientForm
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
from weboob.tools.date import parse_french_date
|
||||
|
|
@ -32,6 +32,12 @@ from weboob.tools.js import Javascript
|
|||
|
||||
|
||||
|
||||
class PromoPage(Page):
|
||||
def on_loaded(self):
|
||||
# We land sometimes on this page, it's better to raise an unavailable browser
|
||||
# than an Incorrect Password
|
||||
raise BrowserUnavailable('Promo Page')
|
||||
|
||||
class LoginPage(Page):
|
||||
def login(self, login, password):
|
||||
#Paypal use this to check if we accept cookie
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue