Commit 3c6e3ecb authored by Frédéric Lépy's avatar Frédéric Lépy Committed by Romain Bignon

[lcl] handle accounts typing with more flexibility

parent 61e135fa
......@@ -581,7 +581,11 @@ class BoursePage(LoggedPage, HTMLPage):
return "%s Bourse" % CleanText((TableCell('label')(self)[0]).xpath('./div[b]'))(self)
def obj_type(self):
return' '.join(Field('label')(self).split()[:-1]).lower(), Account.TYPE_MARKET)
_label = ' '.join(Field('label')(self).split()[:-1]).lower()
for key in
if key in _label:
return Account.TYPE_MARKET
def get_logout_link(self):
return Link('//a[@class="link-underline" and contains(text(), "espace client")]')(self.doc)
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