diff --git a/py/selenium/webdriver/common/service.py b/py/selenium/webdriver/common/service.py index c5a6f8f4cf874..87ac85d5a59f9 100644 --- a/py/selenium/webdriver/common/service.py +++ b/py/selenium/webdriver/common/service.py @@ -51,7 +51,7 @@ def service_url(self): """ Gets the url of the Service """ - return "http://%s" % utils.join_host_port('localhost', self.port) + return f"http://{utils.join_host_port('localhost', self.port)}" def command_line_args(self): raise NotImplementedError("This method needs to be implemented in a sub class")