Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
weboob
weboob
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 178
    • Issues 178
    • List
    • Boards
    • Labels
    • Milestones
  • Merge Requests 49
    • Merge Requests 49
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • weboob
  • weboobweboob
  • Issues
  • #280

Closed
Open
Opened Jun 26, 2019 by Woofer@woofer
  • Report abuse
  • New issue
Report abuse New issue

Caisse Epargne: boobank (py2.7/old.raspian) : Bug(cealpes): Unable to find element //span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]

~/bank/weboob $ boobank -I ls
                                Account                     Balance    Coming 
---------------------------------------------------------+----------+----------
2019-06-26 07:57:09,549:WARNING:requests.packages.urllib3.connectionpool:1.5:connectionpool.py:647:urlopen Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /Portail.aspx
2019-06-26 07:57:10,084:WARNING:requests.packages.urllib3.connectionpool:1.5:connectionpool.py:647:urlopen Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /Portail.aspx
Bug(cealpes): Unable to find element //span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]
Use --debug option to print backtraces
...
pi@raspberrypi ~/bank/weboob/modules/caissedepargne $ git lg -2
* 428ab2b - (HEAD, 1.5, v1.5) Weboob 1.5 released <Romain Bignon> (4 months ago)
* f30a9cf - setup.py: use standard license name <Romain Bignon> (4 months ago)
pi@raspberrypi ~/bank/weboob/modules/caissedepargne $ python --version
Python 2.7.3
pi@raspberrypi ~/bank/weboob/modules/caissedepargne $ uname -a
Linux raspberrypi 3.10.28+ #634 PREEMPT Sun Feb 2 15:16:25 GMT 2014 armv6l GNU/Linux
diff --git a/modules/caissedepargne/pages.py b/modules/caissedepargne/pages.py
index 5d13b6e..b76a055 100644
--- a/modules/caissedepargne/pages.py
+++ b/modules/caissedepargne/pages.py
@@ -208,7 +208,11 @@ class IndexPage(LoggedPage, HTMLPage):
         if 'OIC_QCF' in self.browser.url:
             # QCF is a mandatory test to make sure you know the basics about financials products
             # however, you can still choose to postpone it. hence the continue link
-            link = Link('//span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]')(self.doc)
+            try:
+                link = Link('//span[@id="lea-prdvel-lien"]/p/b/a[contains(text(), "Continuer")]')(self.doc)
+            except Exception:
+                link = False
+
             if link:
                 self.logger.warning("By-passing QCF")
                 self.browser.location(link)
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: weboob/weboob#280