diff --git a/py/selenium/webdriver/common/service.py b/py/selenium/webdriver/common/service.py index 4a4031b485f20..5b30562dae82e 100644 --- a/py/selenium/webdriver/common/service.py +++ b/py/selenium/webdriver/common/service.py @@ -117,7 +117,10 @@ def stop(self): if self.process is None: return - self.send_remote_shutdown_command() + try: + self.send_remote_shutdown_command() + except TypeError: + pass try: if self.process: