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.
8
9
10
11
|
# File 'lib/capybara/driver/node.rb', line 8
def initialize(driver, native)
@driver = driver
@native = native
end
|
Instance Attribute Details
#driver ⇒ Object
Returns the value of attribute driver.
6
7
8
|
# File 'lib/capybara/driver/node.rb', line 6
def driver
@driver
end
|
#native ⇒ Object
Returns the value of attribute native.
6
7
8
|
# File 'lib/capybara/driver/node.rb', line 6
def native
@native
end
|
Instance Method Details
#==(other) ⇒ Object
109
110
111
|
# File 'lib/capybara/driver/node.rb', line 109
def ==(other)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
end
|
#[](name) ⇒ Object
21
22
23
|
# File 'lib/capybara/driver/node.rb', line 21
def [](name)
raise NotImplementedError
end
|
#all_text ⇒ Object
13
14
15
|
# File 'lib/capybara/driver/node.rb', line 13
def all_text
raise NotImplementedError
end
|
#checked? ⇒ Boolean
75
76
77
|
# File 'lib/capybara/driver/node.rb', line 75
def checked?
raise NotImplementedError
end
|
#click(keys = [], **options) ⇒ Object
43
44
45
|
# File 'lib/capybara/driver/node.rb', line 43
def click(keys = [], **options)
raise NotImplementedError
end
|
#disabled? ⇒ Boolean
83
84
85
|
# File 'lib/capybara/driver/node.rb', line 83
def disabled?
raise NotImplementedError
end
|
#double_click(keys = [], **options) ⇒ Object
51
52
53
|
# File 'lib/capybara/driver/node.rb', line 51
def double_click(keys = [], **options)
raise NotImplementedError
end
|
#drag_to(element) ⇒ Object
63
64
65
|
# File 'lib/capybara/driver/node.rb', line 63
def drag_to(element)
raise NotImplementedError
end
|
#hover ⇒ Object
59
60
61
|
# File 'lib/capybara/driver/node.rb', line 59
def hover
raise NotImplementedError
end
|
#inspect ⇒ Object
103
104
105
106
107
|
# File 'lib/capybara/driver/node.rb', line 103
def inspect
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
%(#<#{self.class} tag="#{tag_name}">)
end
|
#multiple? ⇒ Boolean
91
92
93
|
# File 'lib/capybara/driver/node.rb', line 91
def multiple?
!!self[:multiple]
end
|
#path ⇒ Object
95
96
97
|
# File 'lib/capybara/driver/node.rb', line 95
def path
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
|
#readonly? ⇒ Boolean
87
88
89
|
# File 'lib/capybara/driver/node.rb', line 87
def readonly?
!!self[:readonly]
end
|
#right_click(keys = [], **options) ⇒ Object
47
48
49
|
# File 'lib/capybara/driver/node.rb', line 47
def right_click(keys = [], **options)
raise NotImplementedError
end
|
#select_option ⇒ Object
35
36
37
|
# File 'lib/capybara/driver/node.rb', line 35
def select_option
raise NotImplementedError
end
|
#selected? ⇒ Boolean
79
80
81
|
# File 'lib/capybara/driver/node.rb', line 79
def selected?
raise NotImplementedError
end
|
#send_keys(*args) ⇒ Object
55
56
57
|
# File 'lib/capybara/driver/node.rb', line 55
def send_keys(*args)
raise NotImplementedError
end
|
#set(value, **options) ⇒ Object
31
32
33
|
# File 'lib/capybara/driver/node.rb', line 31
def set(value, **options)
raise NotImplementedError
end
|
#tag_name ⇒ Object
67
68
69
|
# File 'lib/capybara/driver/node.rb', line 67
def tag_name
raise NotImplementedError
end
|
#trigger(event) ⇒ Object
99
100
101
|
# File 'lib/capybara/driver/node.rb', line 99
def trigger(event)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end
|
#unselect_option ⇒ Object
39
40
41
|
# File 'lib/capybara/driver/node.rb', line 39
def unselect_option
raise NotImplementedError
end
|
#value ⇒ Object
25
26
27
|
# File 'lib/capybara/driver/node.rb', line 25
def value
raise NotImplementedError
end
|
#visible? ⇒ Boolean
71
72
73
|
# File 'lib/capybara/driver/node.rb', line 71
def visible?
raise NotImplementedError
end
|
#visible_text ⇒ Object
17
18
19
|
# File 'lib/capybara/driver/node.rb', line 17
def visible_text
raise NotImplementedError
end
|