* Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`. * @param selector The selector for the root element. * @return A `HarnessLoader` rooted at the first element matching the given selector, or null if * no matching element is found.
(selector: string)
| 209 | * no matching element is found. |
| 210 | */ |
| 211 | async harnessLoaderForOptional(selector: string): Promise<HarnessLoader | null> { |
| 212 | const elements = await this.getAllRawElements(selector); |
| 213 | return elements[0] ? this.createEnvironment(elements[0]) : null; |
| 214 | } |
| 215 | |
| 216 | /** |
| 217 | * Gets a list of `HarnessLoader` instances, one for each matching element. |
nothing calls this directly
no test coverage detected