File tree 1 file changed +5
-5
lines changed
py/selenium/webdriver/common
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import errno
19
19
import os
20
- import platform
21
20
import subprocess
21
+ from platform import system
22
22
from subprocess import PIPE
23
- import time
23
+ from time import sleep
24
24
from selenium .common .exceptions import WebDriverException
25
25
from selenium .webdriver .common import utils
26
26
@@ -72,7 +72,7 @@ def start(self):
72
72
cmd = [self .path ]
73
73
cmd .extend (self .command_line_args ())
74
74
self .process = subprocess .Popen (cmd , env = self .env ,
75
- close_fds = platform . system () != 'Windows' ,
75
+ close_fds = system () != 'Windows' ,
76
76
stdout = self .log_file ,
77
77
stderr = self .log_file ,
78
78
stdin = PIPE ,
@@ -103,7 +103,7 @@ def start(self):
103
103
break
104
104
105
105
count += 1
106
- time . sleep (0.5 )
106
+ sleep (0.5 )
107
107
if count == 60 :
108
108
raise WebDriverException ("Can not connect to the Service %s" % self .path )
109
109
@@ -136,7 +136,7 @@ def send_remote_shutdown_command(self):
136
136
if not self .is_connectable ():
137
137
break
138
138
else :
139
- time . sleep (1 )
139
+ sleep (1 )
140
140
141
141
def stop (self ):
142
142
"""
You can’t perform that action at this time.
0 commit comments