* {{> grabTextFrom }} *
(locator)
| 1439 | * |
| 1440 | */ |
| 1441 | async grabTextFrom(locator) { |
| 1442 | const texts = await this.grabTextFromAll(locator) |
| 1443 | assertElementExists(texts, locator) |
| 1444 | if (texts.length > 1) { |
| 1445 | this.debugSection('GrabText', `Using first element out of ${texts.length}`) |
| 1446 | } |
| 1447 | |
| 1448 | return texts[0] |
| 1449 | } |
| 1450 | |
| 1451 | /** |
| 1452 | * {{> grabHTMLFromAll }} |
nothing calls this directly
no test coverage detected