Module: Capybara::NodeActionsAllowLabelClickPatch
- Defined in:
- lib/capybara/playwright/node.rb
Defined Under Namespace
Classes: SelectableElementHandler
Instance Method Summary
collapse
Instance Method Details
#check(locator = nil, **options) ⇒ Object
130
131
132
|
# File 'lib/capybara/playwright/node.rb', line 130
def check(locator = nil, **options)
check_via_label_click(:checkbox, locator, checked: true, **options) { super }
end
|
#choose(locator = nil, **options) ⇒ Object
126
127
128
|
# File 'lib/capybara/playwright/node.rb', line 126
def choose(locator = nil, **options)
check_via_label_click(:radio_button, locator, checked: true, **options) { super }
end
|
#uncheck(locator = nil, **options) ⇒ Object
134
135
136
|
# File 'lib/capybara/playwright/node.rb', line 134
def uncheck(locator = nil, **options)
check_via_label_click(:checkbox, locator, checked: false, **options) { super }
end
|