ING: find the keyboard in case of webiste announcement

Signed-off-by: Florent <weboob@flo.fourcot.fr>
Signed-off-by: Romain Bignon <romain@peerfuse.org>
This commit is contained in:
Florent 2012-01-27 17:52:35 +01:00 committed by Romain Bignon
commit 35bbb38e85

View file

@ -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")