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

Function get_extensions_location

py/conftest.py:276–286  ·  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

274
275
276def get_extensions_location():
277 """Locate the test extensions directory.
278
279 Use Runfiles to locate it if running with bazel, otherwise find it in the local source tree.
280 """
281 if Runfiles is not None:
282 r = Runfiles.Create()
283 extensions = r.Rlocation("selenium/py/test/extensions")
284 else:
285 extensions = str((Path(__file__).parent.parent / "common" / "extensions").resolve())
286 return extensions
287
288
289class ContainerProtocol:

Calls 3

PathClass · 0.85
CreateMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected