Skip to content

Commit

Permalink
General imports (#8947)
Browse files Browse the repository at this point in the history
General imports

Co-authored-by: David Burns <david.burns@theautomatedtester.co.uk>
  • Loading branch information
Machinexa2 and AutomatedTester authored Dec 10, 2020
1 parent de38e8d commit 53280c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py/selenium/webdriver/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

import errno
import os
import platform
import subprocess
from platform import system
from subprocess import PIPE
import time
from time import sleep
from selenium.common.exceptions import WebDriverException
from selenium.webdriver.common import utils

Expand Down Expand Up @@ -72,7 +72,7 @@ def start(self):
cmd = [self.path]
cmd.extend(self.command_line_args())
self.process = subprocess.Popen(cmd, env=self.env,
close_fds=platform.system() != 'Windows',
close_fds=system() != 'Windows',
stdout=self.log_file,
stderr=self.log_file,
stdin=PIPE,
Expand Down Expand Up @@ -103,7 +103,7 @@ def start(self):
break

count += 1
time.sleep(0.5)
sleep(0.5)
if count == 60:
raise WebDriverException("Can not connect to the Service %s" % self.path)

Expand Down Expand Up @@ -136,7 +136,7 @@ def send_remote_shutdown_command(self):
if not self.is_connectable():
break
else:
time.sleep(1)
sleep(1)

def stop(self):
"""
Expand Down

0 comments on commit 53280c7

Please sign in to comment.