fix credentials encoding
This commit is contained in:
parent
9fe4faa6bb
commit
37c963b54b
1 changed files with 2 additions and 2 deletions
|
|
@ -43,8 +43,8 @@ class LoginPage(BasePage):
|
|||
|
||||
def login(self, username, password):
|
||||
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'gaia_loginform')
|
||||
self.browser['Email'] = username
|
||||
self.browser['Passwd'] = password
|
||||
self.browser['Email'] = username.encode(self.browser.ENCODING)
|
||||
self.browser['Passwd'] = password.encode(self.browser.ENCODING)
|
||||
self.browser.submit()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue