* {{> grabAttributeFrom }}
(locator, attr)
| 1537 | * {{> grabAttributeFrom }} |
| 1538 | */ |
| 1539 | async grabAttributeFrom(locator, attr) { |
| 1540 | const attrs = await this.grabAttributeFromAll(locator, attr) |
| 1541 | assertElementExists(attrs, locator) |
| 1542 | if (attrs.length > 1) { |
| 1543 | this.debugSection('GrabAttribute', `Using first element out of ${attrs.length}`) |
| 1544 | } |
| 1545 | return attrs[0] |
| 1546 | } |
| 1547 | |
| 1548 | /** |
| 1549 | * {{> seeInTitle }} |
nothing calls this directly
no test coverage detected