Class: Capybara::Driver::Node
- Inherits:
-
Object
- Object
- Capybara::Driver::Node
show all
- Defined in:
- lib/capybara/driver/node.rb
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
#driver ⇒ Object
Returns the value of attribute driver.
4
5
6
|
# File 'lib/capybara/driver/node.rb', line 4
def driver
@driver
end
|
#native ⇒ Object
Returns the value of attribute native.
4
5
6
|
# File 'lib/capybara/driver/node.rb', line 4
def native
@native
end
|
Instance Method Details
#==(other) ⇒ Object
86
87
88
|
# File 'lib/capybara/driver/node.rb', line 86
def ==(other)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
end
|
#[](name) ⇒ Object
19
20
21
|
# File 'lib/capybara/driver/node.rb', line 19
def [](name)
raise NotImplementedError
end
|
#all_text ⇒ Object
11
12
13
|
# File 'lib/capybara/driver/node.rb', line 11
def all_text
raise NotImplementedError
end
|
#checked? ⇒ Boolean
60
61
62
|
# File 'lib/capybara/driver/node.rb', line 60
def checked?
raise NotImplementedError
end
|
#click ⇒ Object
40
41
42
|
# File 'lib/capybara/driver/node.rb', line 40
def click
raise NotImplementedError
end
|
#disabled? ⇒ Boolean
68
69
70
|
# File 'lib/capybara/driver/node.rb', line 68
def disabled?
raise NotImplementedError
end
|
#drag_to(element) ⇒ Object
48
49
50
|
# File 'lib/capybara/driver/node.rb', line 48
def drag_to(element)
raise NotImplementedError
end
|
#hover ⇒ Object
44
45
46
|
# File 'lib/capybara/driver/node.rb', line 44
def hover
raise NotImplementedError
end
|
#inspect ⇒ Object
80
81
82
83
84
|
# File 'lib/capybara/driver/node.rb', line 80
def inspect
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError, 'Capybara::Driver::Node#inspect'
%(#<#{self.class} tag="#{tag_name}">)
end
|
#path ⇒ Object
72
73
74
|
# File 'lib/capybara/driver/node.rb', line 72
def path
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
|
#select_option ⇒ Object
32
33
34
|
# File 'lib/capybara/driver/node.rb', line 32
def select_option
raise NotImplementedError
end
|
#selected? ⇒ Boolean
64
65
66
|
# File 'lib/capybara/driver/node.rb', line 64
def selected?
raise NotImplementedError
end
|
#set(value) ⇒ Object
28
29
30
|
# File 'lib/capybara/driver/node.rb', line 28
def set(value)
raise NotImplementedError
end
|
#tag_name ⇒ Object
52
53
54
|
# File 'lib/capybara/driver/node.rb', line 52
def tag_name
raise NotImplementedError
end
|
#trigger(event) ⇒ Object
76
77
78
|
# File 'lib/capybara/driver/node.rb', line 76
def trigger(event)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end
|
#unselect_option ⇒ Object
36
37
38
|
# File 'lib/capybara/driver/node.rb', line 36
def unselect_option
raise NotImplementedError
end
|
#value ⇒ Object
23
24
25
|
# File 'lib/capybara/driver/node.rb', line 23
def value
raise NotImplementedError
end
|
#visible? ⇒ Boolean
56
57
58
|
# File 'lib/capybara/driver/node.rb', line 56
def visible?
raise NotImplementedError
end
|
#visible_text ⇒ Object
15
16
17
|
# File 'lib/capybara/driver/node.rb', line 15
def visible_text
raise NotImplementedError
end
|