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