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.
7
8
9
10
|
# File 'lib/capybara/driver/node.rb', line 7
def initialize(driver, native)
@driver = driver
@native = native
end
|
Instance Attribute Details
#driver ⇒ Object
Returns the value of attribute driver.
5
6
7
|
# File 'lib/capybara/driver/node.rb', line 5
def driver
@driver
end
|
#native ⇒ Object
Returns the value of attribute native.
5
6
7
|
# File 'lib/capybara/driver/node.rb', line 5
def native
@native
end
|
Instance Method Details
#==(other) ⇒ Object
100
101
102
|
# File 'lib/capybara/driver/node.rb', line 100
def ==(other)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#=='
end
|
#[](name) ⇒ Object
20
21
22
|
# File 'lib/capybara/driver/node.rb', line 20
def [](name)
raise NotImplementedError
end
|
#all_text ⇒ Object
12
13
14
|
# File 'lib/capybara/driver/node.rb', line 12
def all_text
raise NotImplementedError
end
|
#checked? ⇒ Boolean
74
75
76
|
# File 'lib/capybara/driver/node.rb', line 74
def checked?
raise NotImplementedError
end
|
#click ⇒ Object
42
43
44
|
# File 'lib/capybara/driver/node.rb', line 42
def click
raise NotImplementedError
end
|
#disabled? ⇒ Boolean
82
83
84
|
# File 'lib/capybara/driver/node.rb', line 82
def disabled?
raise NotImplementedError
end
|
#double_click ⇒ Object
50
51
52
|
# File 'lib/capybara/driver/node.rb', line 50
def double_click
raise NotImplementedError
end
|
#drag_to(element) ⇒ Object
62
63
64
|
# File 'lib/capybara/driver/node.rb', line 62
def drag_to(element)
raise NotImplementedError
end
|
#hover ⇒ Object
58
59
60
|
# File 'lib/capybara/driver/node.rb', line 58
def hover
raise NotImplementedError
end
|
#inspect ⇒ Object
94
95
96
97
98
|
# File 'lib/capybara/driver/node.rb', line 94
def inspect
%(#<#{self.class} tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
%(#<#{self.class} tag="#{tag_name}">)
end
|
#path ⇒ Object
86
87
88
|
# File 'lib/capybara/driver/node.rb', line 86
def path
raise NotSupportedByDriverError, 'Capybara::Driver::Node#path'
end
|
#right_click ⇒ Object
46
47
48
|
# File 'lib/capybara/driver/node.rb', line 46
def right_click
raise NotImplementedError
end
|
#select_option ⇒ Object
34
35
36
|
# File 'lib/capybara/driver/node.rb', line 34
def select_option
raise NotImplementedError
end
|
#selected? ⇒ Boolean
78
79
80
|
# File 'lib/capybara/driver/node.rb', line 78
def selected?
raise NotImplementedError
end
|
#send_keys(*args) ⇒ Object
54
55
56
|
# File 'lib/capybara/driver/node.rb', line 54
def send_keys(*args)
raise NotImplementedError
end
|
#set(value, options = {}) ⇒ Object
30
31
32
|
# File 'lib/capybara/driver/node.rb', line 30
def set(value, options={})
raise NotImplementedError
end
|
#tag_name ⇒ Object
66
67
68
|
# File 'lib/capybara/driver/node.rb', line 66
def tag_name
raise NotImplementedError
end
|
#trigger(event) ⇒ Object
90
91
92
|
# File 'lib/capybara/driver/node.rb', line 90
def trigger(event)
raise NotSupportedByDriverError, 'Capybara::Driver::Node#trigger'
end
|
#unselect_option ⇒ Object
38
39
40
|
# File 'lib/capybara/driver/node.rb', line 38
def unselect_option
raise NotImplementedError
end
|
#value ⇒ Object
24
25
26
|
# File 'lib/capybara/driver/node.rb', line 24
def value
raise NotImplementedError
end
|
#visible? ⇒ Boolean
70
71
72
|
# File 'lib/capybara/driver/node.rb', line 70
def visible?
raise NotImplementedError
end
|
#visible_text ⇒ Object
16
17
18
|
# File 'lib/capybara/driver/node.rb', line 16
def visible_text
raise NotImplementedError
end
|