Skip to content

Commit

Permalink
fix TypeError in chrome_options.extensions for Python3.x
Browse files Browse the repository at this point in the history
Signed-off-by: Luke Inman-Semerau <luke.semerau@gmail.com>
  • Loading branch information
dharrya authored and lukeis committed Oct 22, 2013
1 parent e4d20ac commit 4ae0b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/chrome/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def extensions(self):
# Should not use base64.encodestring() which inserts newlines every
# 76 characters (per RFC 1521). Chromedriver has to remove those
# unnecessary newlines before decoding, causing performance hit.
encoded_extensions.append(base64.b64encode(file_.read()))
encoded_extensions.append(base64.b64encode(file_.read()).decode('UTF-8'))

file_.close()
return encoded_extensions + self._extensions
Expand Down

0 comments on commit 4ae0b52

Please sign in to comment.