Sha256: 2e029a89f8f11130a7dace8911d5afbb4a987833b3c652372a2df6b3db2fc84c

Contents?: true

Size: 893 Bytes

Versions: 9

Compression:

Stored size: 893 Bytes

Contents

module Capybara
  class Node
    include Searchable

    attr_reader :driver, :node

    def initialize(driver, node)
      @driver = driver
      @node = node
    end

    def text
      raise NotImplementedError
    end

    def [](name)
      raise NotImplementedError
    end

    def value
      self[:value]
    end

    def set(value)
      raise NotImplementedError
    end

    def select(option)
      raise NotImplementedError
    end

    def unselect(option)
      raise NotImplementedError
    end

    def click
      raise NotImplementedError
    end

    def drag_to(element)
      raise NotImplementedError
    end

    def tag_name
      raise NotImplementedError
    end

    def visible?
      raise NotImplementedError
    end

    def path
      raise NotSupportedByDriverError
    end
    
    def trigger(event)
      raise NotSupportedByDriverError
    end
  end
end

Version data entries

9 entries across 9 versions & 5 rubygems

Version Path
david-capybara-0.3.9.1 lib/capybara/node.rb
capybara-0.3.9 lib/capybara/node.rb
david-capybara-0.3.8 lib/capybara/node.rb
katzil-capybara-0.3.8 lib/capybara/node.rb
capybara-0.3.8 lib/capybara/node.rb
pr0d1r2-capybara-0.3.7 lib/capybara/node.rb
capybara-0.3.7 lib/capybara/node.rb
capybara-0.3.6 lib/capybara/node.rb
h13ronim-capybara-0.3.0.1 lib/capybara/node.rb