Module: Capybara::NodeActionsAllowLabelClickPatch
- Defined in:
- lib/capybara/playwright/node.rb
Instance Method Summary collapse
- #check(locator = nil, **options) ⇒ Object
- #choose(locator = nil, **options) ⇒ Object
- #uncheck(locator = nil, **options) ⇒ Object
Instance Method Details
#check(locator = nil, **options) ⇒ Object
38 39 40 |
# File 'lib/capybara/playwright/node.rb', line 38 def check(locator = nil, **) _playwright_check_via_get_by_label(locator, checked: true, **) { super } end |
#choose(locator = nil, **options) ⇒ Object
34 35 36 |
# File 'lib/capybara/playwright/node.rb', line 34 def choose(locator = nil, **) _playwright_check_via_get_by_label(locator, checked: true, **) { super } end |
#uncheck(locator = nil, **options) ⇒ Object
42 43 44 |
# File 'lib/capybara/playwright/node.rb', line 42 def uncheck(locator = nil, **) _playwright_check_via_get_by_label(locator, checked: false, **) { super } end |