boursorama: support website changes

This commit is contained in:
Romain Bignon 2013-07-25 11:50:59 +02:00
commit 11a161c1b1
4 changed files with 27 additions and 45 deletions

View file

@ -48,7 +48,7 @@ class VirtKeyboard(MappedVirtKeyboard):
return r > 240 and g > 240 and b > 240
def __init__(self, page):
img = page.document.find("//img[@usemap='#pass_map']")
img = page.document.find("//img[@usemap='#login-pad_map']")
img_file = page.browser.openurl(img.attrib['src'])
MappedVirtKeyboard.__init__(self, img_file, page.document, img, self.color, convert='RGB')