class Capybara::Playwright::Node::TextInput

Public Instance Methods

set(value, **options) click to toggle source
# File lib/capybara/playwright/node.rb, line 237
def set(value, **options)
  @element.fill(value.to_s, timeout: @timeout)
rescue ::Playwright::TimeoutError
  raise if @element.editable?

  puts "[INFO] Node#set: element is not editable. #{@element}"
end