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

Function get_extensions_location

py/conftest.py:254–264  ·  view source on GitHub ↗

Locate the test extensions directory. Use Runfiles to locate it if running with bazel, otherwise find it in the local source tree.

()

Source from the content-addressed store, hash-verified

252
253
254def get_extensions_location():
255 """Locate the test extensions directory.
256
257 Use Runfiles to locate it if running with bazel, otherwise find it in the local source tree.
258 """
259 if Runfiles is not None:
260 r = Runfiles.Create()
261 extensions = r.Rlocation("selenium/py/test/extensions")
262 else:
263 extensions = str((Path(__file__).parent.parent / "common" / "extensions").resolve())
264 return extensions
265
266
267class ContainerProtocol:

Calls 3

PathClass · 0.85
resolveMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected