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
95
96
97
|
# File 'lib/capybara/driver/node.rb', line 95
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
69
70
71
|
# File 'lib/capybara/driver/node.rb', line 69
def checked?
raise NotImplementedError
end
|
#click ⇒ Object
41
42
43
|
# File 'lib/capybara/driver/node.rb', line 41
def click
raise NotImplementedError
end
|
#disabled? ⇒ Boolean
77
78
79
|
# File 'lib/capybara/driver/node.rb', line 77
def disabled?
raise NotImplementedError
end
|
#double_click ⇒ Object
49
50
51
|
# File 'lib/capybara/driver/node.rb', line 49
def double_click
raise NotImplementedError
end
|
#drag_to(element) ⇒ Object
57
58
59
|
# File 'lib/capybara/driver/node.rb', line 57
def drag_to(element)
raise NotImplementedError
end
|
#hover ⇒ Object
53
54
55
|
# File 'lib/capybara/driver/node.rb', line 53
def hover
raise NotImplementedError
end
|
#inspect ⇒ Object
89
90
91
92
93
|
# File 'lib/capybara/driver/node.rb', line 89
def inspect
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
%(#<#{self.class} tag="#{tag_name}">)
end
|
#path ⇒ Object
81
82
83
|
# File 'lib/capybara/driver/node.rb', line 81
def path
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
|
#right_click ⇒ Object
45
46
47
|
# File 'lib/capybara/driver/node.rb', line 45
def right_click
raise NotImplementedError
end
|
#select_option ⇒ Object
33
34
35
|
# File 'lib/capybara/driver/node.rb', line 33
def select_option
raise NotImplementedError
end
|
#selected? ⇒ Boolean
73
74
75
|
# File 'lib/capybara/driver/node.rb', line 73
def selected?
raise NotImplementedError
end
|
#set(value, options = {}) ⇒ Object
29
30
31
|
# File 'lib/capybara/driver/node.rb', line 29
def set(value, options={})
raise NotImplementedError
end
|
#tag_name ⇒ Object
61
62
63
|
# File 'lib/capybara/driver/node.rb', line 61
def tag_name
raise NotImplementedError
end
|
#trigger(event) ⇒ Object
85
86
87
|
# File 'lib/capybara/driver/node.rb', line 85
def trigger(event)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end
|
#unselect_option ⇒ Object
37
38
39
|
# File 'lib/capybara/driver/node.rb', line 37
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
65
66
67
|
# File 'lib/capybara/driver/node.rb', line 65
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
|