Locate the test extensions directory. Use Runfiles to locate it if running with bazel, otherwise find it in the local source tree.
()
| 274 | |
| 275 | |
| 276 | def 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 | |
| 289 | class ContainerProtocol: |
no test coverage detected