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
#[](name) ⇒ Object
15
16
17
|
# File 'lib/capybara/driver/node.rb', line 15
def [](name)
raise NotImplementedError
end
|
#click ⇒ Object
35
36
37
|
# File 'lib/capybara/driver/node.rb', line 35
def click
raise NotImplementedError
end
|
#drag_to(element) ⇒ Object
39
40
41
|
# File 'lib/capybara/driver/node.rb', line 39
def drag_to(element)
raise NotImplementedError
end
|
#inspect ⇒ Object
59
60
61
62
63
|
# File 'lib/capybara/driver/node.rb', line 59
def inspect
%(#<Capybara::Driver::Node tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
%(#<Capybara::Driver::Node tag="#{tag_name}">)
end
|
#select_option(option) ⇒ Object
27
28
29
|
# File 'lib/capybara/driver/node.rb', line 27
def select_option(option)
raise NotImplementedError
end
|
#set(value) ⇒ Object
23
24
25
|
# File 'lib/capybara/driver/node.rb', line 23
def set(value)
raise NotImplementedError
end
|
#tag_name ⇒ Object
43
44
45
|
# File 'lib/capybara/driver/node.rb', line 43
def tag_name
raise NotImplementedError
end
|
#text ⇒ Object
11
12
13
|
# File 'lib/capybara/driver/node.rb', line 11
def text
raise NotImplementedError
end
|
#unselect_option(option) ⇒ Object
31
32
33
|
# File 'lib/capybara/driver/node.rb', line 31
def unselect_option(option)
raise NotImplementedError
end
|
#value ⇒ Object
19
20
21
|
# File 'lib/capybara/driver/node.rb', line 19
def value
raise NotImplementedError
end
|
#visible? ⇒ Boolean
47
48
49
|
# File 'lib/capybara/driver/node.rb', line 47
def visible?
raise NotImplementedError
end
|