* Searches for an element with the given selector under the evironment's root element, * and returns a `HarnessLoader` rooted at the matching element. If multiple elements match the * selector, the first is used. If no elements match, an error is thrown. * @param selector The selector for t
(selector: string)
| 311 | * @throws If a matching element can't be found. |
| 312 | */ |
| 313 | async getChildLoader(selector: string): Promise<HarnessLoader> { |
| 314 | return this.createEnvironment( |
| 315 | await _assertResultFound(this.getAllRawElements(selector), [ |
| 316 | _getDescriptionForHarnessLoaderQuery(selector), |
| 317 | ]), |
| 318 | ); |
| 319 | } |
| 320 | |
| 321 | /** |
| 322 | * Searches for all elements with the given selector under the environment's root element, |
nothing calls this directly
no test coverage detected