Class: Capybara::Playwright::Node::DateInput
- Includes:
 - UpdateValueJS
 
- Defined in:
 - lib/capybara/playwright/node.rb
 
Instance Method Summary collapse
Methods included from UpdateValueJS
Methods inherited from Settable
Constructor Details
This class inherits a constructor from Capybara::Playwright::Node::Settable
Instance Method Details
#set(value, **options) ⇒ Object
      293 294 295 296 297 298 299  | 
    
      # File 'lib/capybara/playwright/node.rb', line 293 def set(value, **) if !value.is_a?(String) && value.respond_to?(:to_date) update_value_js(@element, value.to_date.iso8601) else @element.fill(value.to_s, timeout: @timeout) end end  |