Module: Capybara::NodeActionsAllowLabelClickPatch

Defined in:
lib/capybara/playwright/node.rb

Instance Method Summary collapse

Instance Method Details

#check(locator = nil, **options) ⇒ Object



38
39
40
# File 'lib/capybara/playwright/node.rb', line 38

def check(locator = nil, **options)
  _playwright_check_via_get_by_label(locator, checked: true, **options) { super }
end

#choose(locator = nil, **options) ⇒ Object



34
35
36
# File 'lib/capybara/playwright/node.rb', line 34

def choose(locator = nil, **options)
  _playwright_check_via_get_by_label(locator, checked: true, **options) { super }
end

#uncheck(locator = nil, **options) ⇒ Object



42
43
44
# File 'lib/capybara/playwright/node.rb', line 42

def uncheck(locator = nil, **options)
  _playwright_check_via_get_by_label(locator, checked: false, **options) { super }
end