[weboob] [PATCH 1/1] ING: find the keyboard in case of webiste announcement

Florent weboob at flo.fourcot.fr
Fri Jan 27 17:52:35 CET 2012


Signed-off-by: Florent <weboob at flo.fourcot.fr>
---
 weboob/backends/ing/pages/login.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/weboob/backends/ing/pages/login.py b/weboob/backends/ing/pages/login.py
index ac8a0ff..280b0ee 100644
--- a/weboob/backends/ing/pages/login.py
+++ b/weboob/backends/ing/pages/login.py
@@ -44,7 +44,8 @@ class INGVirtKeyboard(VirtKeyboard):
 
 
     def __init__(self,basepage):
-        img=basepage.document.find("//img[@id='mrc:j_id86']")
+        divkeyboard = basepage.document.find("//div[@id='clavierdisplayLogin']")
+        img = divkeyboard.xpath("img")[1]
         if img is None:
             return False
         url=img.attrib.get("src")
-- 
1.7.2.5




More information about the weboob mailing list