Sha256: 24114ef1a3780cd8a0ab7abba9c2d751de1016539e0421a093382e3e02ac012b

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

require 'rutl/interface/elements/base_element'

#
# I'm using the text element for all text-like things. Passowrds, too.
#
class Text < BaseElement
  def initialize(selectors = {}, destinations = [])
    super
  end

  def clear
    this_css.clear
  end

  def text
    get
  end

  def get
    this_css.attribute(:value)
  end

  def text=(string)
    set(string)
  end

  def set(string)
    this_css.send_keys(string)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rutl-0.1.3 lib/rutl/interface/elements/text.rb
rutl-0.1.2 lib/rutl/interface/elements/text.rb
rutl-0.1.1 lib/rutl/interface/elements/text.rb