update module to support last website update
This commit is contained in:
parent
b6a7d21fb9
commit
1d460568f5
1 changed files with 5 additions and 5 deletions
|
|
@ -44,17 +44,17 @@ class LoginPage(BasePage):
|
||||||
data = {'FMNUserId': username,
|
data = {'FMNUserId': username,
|
||||||
'memorableAnswer': secret,
|
'memorableAnswer': secret,
|
||||||
'password': '',
|
'password': '',
|
||||||
'data': datastr,
|
|
||||||
'__data': datastr,
|
'__data': datastr,
|
||||||
'__custtype': '',
|
'__custtype': 'GLOBAL',
|
||||||
'form_variable': '',
|
|
||||||
|
|
||||||
}
|
}
|
||||||
for i, field in enumerate(form_world[0].xpath('.//div[@class="formInput extFormStyle01"]/input[@type="password"]')):
|
for i, field in enumerate(form_world[0].xpath('.//div[@class="csLabel"]/nobr/input[@type="password"]')):
|
||||||
if field.attrib['name'].startswith('RccibNumber'):
|
if field.attrib['name'].startswith('keyrcc_password_first') and not 'disabled' in field.attrib:
|
||||||
data[field.attrib['name']] = password[i]
|
data[field.attrib['name']] = password[i]
|
||||||
data['password'] += password[i]
|
data['password'] += password[i]
|
||||||
|
|
||||||
|
if url.startswith('/'):
|
||||||
|
url = 'https://www.hsbc.fr%s' % url
|
||||||
|
|
||||||
self.browser.location(url, urllib.urlencode(data), no_login=True)
|
self.browser.location(url, urllib.urlencode(data), no_login=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue