Class: Capybara::Playwright::Node::Checkbox

Inherits:
Settable
  • Object
show all
Defined in:
lib/capybara/playwright/node.rb

Instance Method Summary collapse

Methods inherited from Settable

#initialize

Constructor Details

This class inherits a constructor from Capybara::Playwright::Node::Settable

Instance Method Details

#set(value, **options) ⇒ Object



227
228
229
230
231
232
233
# File 'lib/capybara/playwright/node.rb', line 227

def set(value, **options)
  if value
    @element.check(timeout: @timeout)
  else
    @element.uncheck(timeout: @timeout)
  end
end