Skip to content

Commit aa55398

Browse files
committed
command_executor should also support unicode strings as well.
Fixes Issue #7214
1 parent 06c088a commit aa55398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: py/selenium/webdriver/remote/webdriver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, command_executor='http://127.0.0.1:4444/wd/hub',
6262
if proxy is not None:
6363
proxy.add_to_capabilities(desired_capabilities)
6464
self.command_executor = command_executor
65-
if type(self.command_executor) is bytes or type(self.command_executor) is str:
65+
if type(self.command_executor) is bytes or isinstance(self.command_executor, str):
6666
self.command_executor = RemoteConnection(command_executor, keep_alive=keep_alive)
6767
self._is_remote = True
6868
self.session_id = None

0 commit comments

Comments
 (0)