MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / download_if_needed

Method download_if_needed

py/selenium/webdriver/remote/server.py:169–177  ·  view source on GitHub ↗

Download the server if it doesn't already exist. Latest version is downloaded unless specified.

(self, version=None)

Source from the content-addressed store, hash-verified

167 return False
168
169 def download_if_needed(self, version=None):
170 """Download the server if it doesn't already exist.
171
172 Latest version is downloaded unless specified.
173 """
174 args = ["--grid"]
175 if version is not None:
176 args.append(version)
177 return SeleniumManager().binary_paths(args)["driver_path"]
178
179 def start(self):
180 """Start the server.

Callers 3

startMethod · 0.95
standalone_serverFunction · 0.95

Calls 3

SeleniumManagerClass · 0.90
binary_pathsMethod · 0.80
appendMethod · 0.45

Tested by 2

standalone_serverFunction · 0.76