Skip to content

Commit

Permalink
command_executor should also support unicode strings as well.
Browse files Browse the repository at this point in the history
Fixes Issue #7214
  • Loading branch information
lukeis committed Apr 22, 2014
1 parent 06c088a commit aa55398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, command_executor='http://127.0.0.1:4444/wd/hub',
if proxy is not None:
proxy.add_to_capabilities(desired_capabilities)
self.command_executor = command_executor
if type(self.command_executor) is bytes or type(self.command_executor) is str:
if type(self.command_executor) is bytes or isinstance(self.command_executor, str):
self.command_executor = RemoteConnection(command_executor, keep_alive=keep_alive)
self._is_remote = True
self.session_id = None
Expand Down

0 comments on commit aa55398

Please sign in to comment.