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
94
95
96
|
# File 'lib/capybara/driver/node.rb', line 94
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
68
69
70
|
# File 'lib/capybara/driver/node.rb', line 68
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
76
77
78
|
# File 'lib/capybara/driver/node.rb', line 76
def disabled?
raise NotImplementedError
end
|
#double_click ⇒ Object
48
49
50
|
# File 'lib/capybara/driver/node.rb', line 48
def double_click
raise NotImplementedError
end
|
#drag_to(element) ⇒ Object
56
57
58
|
# File 'lib/capybara/driver/node.rb', line 56
def drag_to(element)
raise NotImplementedError
end
|
#hover ⇒ Object
52
53
54
|
# File 'lib/capybara/driver/node.rb', line 52
def hover
raise NotImplementedError
end
|
#inspect ⇒ Object
88
89
90
91
92
|
# File 'lib/capybara/driver/node.rb', line 88
def inspect
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
%(#<#{self.class} tag="#{tag_name}">)
end
|
#path ⇒ Object
80
81
82
|
# File 'lib/capybara/driver/node.rb', line 80
def path
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
|
#right_click ⇒ Object
44
45
46
|
# File 'lib/capybara/driver/node.rb', line 44
def right_click
raise NotImplmentedError
end
|
#select_option ⇒ Object
32
33
34
|
# File 'lib/capybara/driver/node.rb', line 32
def select_option
raise NotImplementedError
end
|
#selected? ⇒ Boolean
72
73
74
|
# File 'lib/capybara/driver/node.rb', line 72
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
60
61
62
|
# File 'lib/capybara/driver/node.rb', line 60
def tag_name
raise NotImplementedError
end
|
#trigger(event) ⇒ Object
84
85
86
|
# File 'lib/capybara/driver/node.rb', line 84
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
64
65
66
|
# File 'lib/capybara/driver/node.rb', line 64
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
|