Commit cc7ef90b authored by Martin Morlot's avatar Martin Morlot Committed by Vincent A

[myfoncia] Fixed the login on the connector

- Fixed the login on the connector
- Made the pages as logged_page so that it would not relogging everytime

Closes: 12317@zendesk
parent 98d0c992
......@@ -19,7 +19,7 @@
from __future__ import unicode_literals
from weboob.browser.pages import HTMLPage
from weboob.browser.pages import HTMLPage, LoggedPage
from weboob.browser.filters.standard import CleanDecimal, CleanText, Date, Env, Format
from weboob.browser.filters.html import Attr, Link, XPathNotFound
from weboob.browser.elements import ItemElement, ListElement, method
......@@ -32,13 +32,13 @@ class LoginPage(HTMLPage):
def do_login(self, username, password):
form = self.get_form('//form[@class="Form"]')
form["_username"] = username
form["username"] = username
form["_password"] = password
class MonBienPage(HTMLPage):
class MonBienPage(LoggedPage, HTMLPage):
class get_subscriptions(ListElement):
item_xpath = '//li[has-class("MyPropertiesSelector-item") and not(has-class("MyPropertiesSelector-item--add"))]'
......@@ -63,7 +63,7 @@ class MonBienPage(HTMLPage):
return subscriber
class MesChargesPage(HTMLPage):
class MesChargesPage(LoggedPage, HTMLPage):
class get_documents(ListElement):
item_xpath = '//article[@data-taffy="utility_record"]'
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