MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / checkOption

Method checkOption

lib/helper/Playwright.js:2163–2167  ·  view source on GitHub ↗

* * [Additional options](https://playwright.dev/docs/api/class-elementhandle#element-handle-check) for check available as 3rd argument. * * Examples: * * ```js * // click on element at position * I.checkOption('Agree', '.signup', { position: { x: 5, y: 5 } }) * ``` * > ⚠️

(field, context = null, options = { force: true })

Source from the content-addressed store, hash-verified

2161 *
2162 */
2163 async checkOption(field, context = null, options = { force: true }) {
2164 const elm = await this._locateCheckable(field, context)
2165 await elm.check(options)
2166 return this._waitForAction()
2167 }
2168
2169 /**
2170 *

Callers

nothing calls this directly

Calls 2

_locateCheckableMethod · 0.95
_waitForActionMethod · 0.95

Tested by

no test coverage detected