* 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. * @throws If no matching element is found for the given sel
(selector: string)
| 195 | * @throws If no matching element is found for the given selector. |
| 196 | */ |
| 197 | async harnessLoaderFor(selector: string): Promise<HarnessLoader> { |
| 198 | return this.createEnvironment( |
| 199 | await _assertResultFound(this.getAllRawElements(selector), [ |
| 200 | _getDescriptionForHarnessLoaderQuery(selector), |
| 201 | ]), |
| 202 | ); |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Gets a `HarnessLoader` instance for an element under the root of this `HarnessEnvironment`. |
nothing calls this directly
no test coverage detected