enable support for Groupama Banque (thanks to Willy Villard, closes #1112)
This commit is contained in:
parent
c5ee2aec2a
commit
c30057d97f
2 changed files with 19 additions and 9 deletions
|
|
@ -28,17 +28,20 @@ __all__ = ['GanAssurances']
|
|||
|
||||
class GanAssurances(BaseBrowser):
|
||||
PROTOCOL = 'https'
|
||||
DOMAIN = 'espaceclient.ganassurances.fr'
|
||||
PAGES = {'https://espaceclient.ganassurances.fr/wps/portal/login.*': LoginPage,
|
||||
'https://espaceclient.ganassurances.fr/wps/myportal/TableauDeBord': AccountsPage,
|
||||
'https://espaceclient.ganassurances.fr/wps/myportal/!ut.*': TransactionsPage,
|
||||
PAGES = {'https://[^/]+/wps/portal/login.*': LoginPage,
|
||||
'https://[^/]+/wps/myportal/TableauDeBord': AccountsPage,
|
||||
'https://[^/]+/wps/myportal/!ut.*': TransactionsPage,
|
||||
}
|
||||
|
||||
def __init__(self, website, *args, **kwargs):
|
||||
self.DOMAIN = website
|
||||
BaseBrowser.__init__(self, *args, **kwargs)
|
||||
|
||||
def is_logged(self):
|
||||
return self.page is not None and not self.is_on_page(LoginPage)
|
||||
|
||||
def home(self):
|
||||
self.location('https://espaceclient.ganassurances.fr/wps/myportal/TableauDeBord')
|
||||
self.location('/wps/myportal/TableauDeBord')
|
||||
|
||||
def login(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue