Commit c33835d9 authored by Benjamin Bouvier's avatar Benjamin Bouvier Committed by Vincent A

[creditmutuel] remove supplementary date in raw labels

The bank's website has added a new ".eir_showxs" class to display
elements only on mobile devices, only containing the transaction's date
(without the "Date de valeur" prefix). Remove it if we see it in the
list of text elements in the raw label.
parent d127f35f
......@@ -794,6 +794,13 @@ class OperationsPage(LoggedPage, HTMLPage):
def __call__(self, item):
el = TableCell('raw')(item)[0]
# All the sub-elements with the class "eir_showxs" are to
# be shown only in mobile screens, and are hidden via
# display:none on desktop.
# Clear their content in place.
for elem in el.xpath(".//node()[contains(@class, \"eir_showxs\")]"):
# Remove hidden parts of labels:
# hideifscript: Date de valeur XX/XX/XXXX
# fd: Avis d'opéré
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