Class: Capybara::Driver::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/capybara/driver/node.rb

Direct Known Subclasses

RackTest::Node, Selenium::Node

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(driver, native) ⇒ Node

Returns a new instance of Node.



6
7
8
9
# File 'lib/capybara/driver/node.rb', line 6

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

Instance Attribute Details

#driverObject (readonly)

Returns the value of attribute driver.



4
5
6
# File 'lib/capybara/driver/node.rb', line 4

def driver
  @driver
end

#nativeObject (readonly)

Returns the value of attribute native.



4
5
6
# File 'lib/capybara/driver/node.rb', line 4

def native
  @native
end

Instance Method Details

#[](name) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/capybara/driver/node.rb', line 15

def [](name)
  raise NotImplementedError
end

#checked?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


51
52
53
# File 'lib/capybara/driver/node.rb', line 51

def checked?
  raise NotImplementedError
end

#clickObject

Raises:

  • (NotImplementedError)


35
36
37
# File 'lib/capybara/driver/node.rb', line 35

def click
  raise NotImplementedError
end

#drag_to(element) ⇒ Object

Raises:

  • (NotImplementedError)


39
40
41
# File 'lib/capybara/driver/node.rb', line 39

def drag_to(element)
  raise NotImplementedError
end

#inspectObject



67
68
69
70
71
# File 'lib/capybara/driver/node.rb', line 67

def inspect
  %(#<Capybara::Driver::Node tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
  %(#<Capybara::Driver::Node tag="#{tag_name}">)
end

#pathObject



59
60
61
# File 'lib/capybara/driver/node.rb', line 59

def path
  raise NotSupportedByDriverError
end

#select_optionObject

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/capybara/driver/node.rb', line 27

def select_option
  raise NotImplementedError
end

#selected?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


55
56
57
# File 'lib/capybara/driver/node.rb', line 55

def selected?
  raise NotImplementedError
end

#set(value) ⇒ Object

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/capybara/driver/node.rb', line 23

def set(value)
  raise NotImplementedError
end

#tag_nameObject

Raises:

  • (NotImplementedError)


43
44
45
# File 'lib/capybara/driver/node.rb', line 43

def tag_name
  raise NotImplementedError
end

#textObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/capybara/driver/node.rb', line 11

def text
  raise NotImplementedError
end

#trigger(event) ⇒ Object



63
64
65
# File 'lib/capybara/driver/node.rb', line 63

def trigger(event)
  raise NotSupportedByDriverError
end

#unselect_optionObject

Raises:

  • (NotImplementedError)


31
32
33
# File 'lib/capybara/driver/node.rb', line 31

def unselect_option
  raise NotImplementedError
end

#valueObject

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/capybara/driver/node.rb', line 19

def value
  raise NotImplementedError
end

#visible?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


47
48
49
# File 'lib/capybara/driver/node.rb', line 47

def visible?
  raise NotImplementedError
end