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