Class: Capybara::Driver::Base
- Inherits:
-
Object
- Object
- Capybara::Driver::Base
show all
- Defined in:
- lib/capybara/driver/base.rb
Instance Method Summary
collapse
Instance Method Details
#accept_modal(type, options = {}, &blk) ⇒ String
Execute the block, and then accept the modal opened.
106
107
108
|
# File 'lib/capybara/driver/base.rb', line 106
def accept_modal(type, options={}, &blk)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#accept_modal'
end
|
#browser_initialized? ⇒ Boolean
Deprecated.
This method is being removed
139
140
141
142
|
# File 'lib/capybara/driver/base.rb', line 139
def browser_initialized?
warn "DEPRECATED: #browser_initialized? is deprecated and will be removed in the next version of Capybara"
true
end
|
#close_window(handle) ⇒ Object
#current_url ⇒ Object
3
4
5
|
# File 'lib/capybara/driver/base.rb', line 3
def current_url
raise NotImplementedError
end
|
#current_window_handle ⇒ Object
55
56
57
|
# File 'lib/capybara/driver/base.rb', line 55
def current_window_handle
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#current_window_handle'
end
|
#dismiss_modal(type, options = {}, &blk) ⇒ String
Execute the block, and then dismiss the modal opened.
119
120
121
|
# File 'lib/capybara/driver/base.rb', line 119
def dismiss_modal(type, options={}, &blk)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#dismiss_modal'
end
|
#evaluate_script(script) ⇒ Object
35
36
37
|
# File 'lib/capybara/driver/base.rb', line 35
def evaluate_script(script)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#evaluate_script'
end
|
#execute_script(script) ⇒ Object
31
32
33
|
# File 'lib/capybara/driver/base.rb', line 31
def execute_script(script)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#execute_script'
end
|
#find_css(query) ⇒ Object
15
16
17
|
# File 'lib/capybara/driver/base.rb', line 15
def find_css(query)
raise NotImplementedError
end
|
#find_xpath(query) ⇒ Object
11
12
13
|
# File 'lib/capybara/driver/base.rb', line 11
def find_xpath(query)
raise NotImplementedError
end
|
#html ⇒ Object
19
20
21
|
# File 'lib/capybara/driver/base.rb', line 19
def html
raise NotImplementedError
end
|
#invalid_element_errors ⇒ Object
123
124
125
|
# File 'lib/capybara/driver/base.rb', line 123
def invalid_element_errors
[]
end
|
#maximize_window(handle) ⇒ Object
67
68
69
|
# File 'lib/capybara/driver/base.rb', line 67
def maximize_window(handle)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#maximize_current_window'
end
|
#needs_server? ⇒ Boolean
134
135
136
|
# File 'lib/capybara/driver/base.rb', line 134
def needs_server?
false
end
|
#no_such_window_error ⇒ Object
91
92
93
|
# File 'lib/capybara/driver/base.rb', line 91
def no_such_window_error
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#no_such_window_error'
end
|
#open_new_window ⇒ Object
#reset! ⇒ Object
131
132
|
# File 'lib/capybara/driver/base.rb', line 131
def reset!
end
|
#resize_window_to(handle, width, height) ⇒ Object
63
64
65
|
# File 'lib/capybara/driver/base.rb', line 63
def resize_window_to(handle, width, height)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#resize_window_to'
end
|
#save_screenshot(path, options = {}) ⇒ Object
39
40
41
|
# File 'lib/capybara/driver/base.rb', line 39
def save_screenshot(path, options={})
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#save_screenshot'
end
|
#switch_to_window(handle) ⇒ Object
83
84
85
|
# File 'lib/capybara/driver/base.rb', line 83
def switch_to_window(handle)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#switch_to_window'
end
|
#visit(path) ⇒ Object
7
8
9
|
# File 'lib/capybara/driver/base.rb', line 7
def visit(path)
raise NotImplementedError
end
|
#wait? ⇒ Boolean
127
128
129
|
# File 'lib/capybara/driver/base.rb', line 127
def wait?
false
end
|
#window_size(handle) ⇒ Object
#within_frame(frame_handle) ⇒ Object
51
52
53
|
# File 'lib/capybara/driver/base.rb', line 51
def within_frame(frame_handle)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_frame'
end
|
#within_window(locator) ⇒ Object
87
88
89
|
# File 'lib/capybara/driver/base.rb', line 87
def within_window(locator)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_window'
end
|