Sha256: 2f148df98844629136891144b05ffdd80b5607ca8e507474d7a7564da4a7db78
Contents?: true
Size: 918 Bytes
Versions: 1
Compression:
Stored size: 918 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 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 private def all_unfiltered(locator) nodes = XPath.wrap(locator).scope(path).paths.map do |path| driver.find(path) end.flatten end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capybara-0.3.0 | lib/capybara/node.rb |