* @returns the first `DebugElement` that matches the predicate at any depth in the subtree.
(predicate: Predicate<DebugElement>)
| 318 | * @returns the first `DebugElement` that matches the predicate at any depth in the subtree. |
| 319 | */ |
| 320 | query(predicate: Predicate<DebugElement>): DebugElement { |
| 321 | const results = this.queryAll(predicate); |
| 322 | return results[0] || null; |
| 323 | } |
| 324 | |
| 325 | /** |
| 326 | * @returns All `DebugElement` matches for the predicate at any depth in the subtree. |