* Find a checkbox by providing human-readable text: * NOTE: Assumes the checkable element exists * * ```js * this.helpers['Playwright']._locateCheckable('I agree with terms and conditions').then // ... * ```
(locator, providedContext = null)
| 1795 | * ``` |
| 1796 | */ |
| 1797 | async _locateCheckable(locator, providedContext = null) { |
| 1798 | const context = providedContext || (await this._getContext()) |
| 1799 | const els = await findCheckable.call(this, locator, context) |
| 1800 | assertElementExists(els[0], locator, 'Checkbox or radio') |
| 1801 | return selectElement(els, locator, this) |
| 1802 | } |
| 1803 | |
| 1804 | /** |
| 1805 | * Find a clickable element by providing human-readable text: |
no test coverage detected