Playwright · Method
locator.click
locator.check() checks a checkbox or radio input. It waits until the control is ready, performs the action, and confirms the control is checked.
Last updated
- Since
- v1.14
Syntax
locator.check(*, force=None, no_wait_after=None, position=None, scroll=None, timeout=None, trial=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
locator.clicklocator.set_checkedlocator.uncheckexpect(locator).to_be_checkedbrowser_context.set_default_timeoutpage.set_default_timeout