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.
105
106
107
|
# File 'lib/capybara/driver/base.rb', line 105
def accept_modal(type, options={}, &blk)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#accept_modal'
end
|
#close_window(handle) ⇒ Object
#current_url ⇒ Object
2
3
4
|
# File 'lib/capybara/driver/base.rb', line 2
def current_url
raise NotImplementedError
end
|
#current_window_handle ⇒ Object
54
55
56
|
# File 'lib/capybara/driver/base.rb', line 54
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.
118
119
120
|
# File 'lib/capybara/driver/base.rb', line 118
def dismiss_modal(type, options={}, &blk)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#dismiss_modal'
end
|
#evaluate_script(script) ⇒ Object
34
35
36
|
# File 'lib/capybara/driver/base.rb', line 34
def evaluate_script(script)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#evaluate_script'
end
|
#execute_script(script) ⇒ Object
30
31
32
|
# File 'lib/capybara/driver/base.rb', line 30
def execute_script(script)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#execute_script'
end
|
#find_css(query) ⇒ Object
14
15
16
|
# File 'lib/capybara/driver/base.rb', line 14
def find_css(query)
raise NotImplementedError
end
|
#find_xpath(query) ⇒ Object
10
11
12
|
# File 'lib/capybara/driver/base.rb', line 10
def find_xpath(query)
raise NotImplementedError
end
|
#html ⇒ Object
18
19
20
|
# File 'lib/capybara/driver/base.rb', line 18
def html
raise NotImplementedError
end
|
#invalid_element_errors ⇒ Object
122
123
124
|
# File 'lib/capybara/driver/base.rb', line 122
def invalid_element_errors
[]
end
|
#maximize_window(handle) ⇒ Object
66
67
68
|
# File 'lib/capybara/driver/base.rb', line 66
def maximize_window(handle)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#maximize_current_window'
end
|
#needs_server? ⇒ Boolean
133
134
135
|
# File 'lib/capybara/driver/base.rb', line 133
def needs_server?
false
end
|
#no_such_window_error ⇒ Object
90
91
92
|
# File 'lib/capybara/driver/base.rb', line 90
def no_such_window_error
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#no_such_window_error'
end
|
#open_new_window ⇒ Object
#reset! ⇒ Object
130
131
|
# File 'lib/capybara/driver/base.rb', line 130
def reset!
end
|
#resize_window_to(handle, width, height) ⇒ Object
62
63
64
|
# File 'lib/capybara/driver/base.rb', line 62
def resize_window_to(handle, width, height)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#resize_window_to'
end
|
#save_screenshot(path, options = {}) ⇒ Object
38
39
40
|
# File 'lib/capybara/driver/base.rb', line 38
def save_screenshot(path, options={})
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#save_screenshot'
end
|
#switch_to_window(handle) ⇒ Object
82
83
84
|
# File 'lib/capybara/driver/base.rb', line 82
def switch_to_window(handle)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#switch_to_window'
end
|
#visit(path) ⇒ Object
6
7
8
|
# File 'lib/capybara/driver/base.rb', line 6
def visit(path)
raise NotImplementedError
end
|
#wait? ⇒ Boolean
126
127
128
|
# File 'lib/capybara/driver/base.rb', line 126
def wait?
false
end
|
#window_size(handle) ⇒ Object
#within_frame(frame_handle) ⇒ Object
50
51
52
|
# File 'lib/capybara/driver/base.rb', line 50
def within_frame(frame_handle)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_frame'
end
|
#within_window(locator) ⇒ Object
86
87
88
|
# File 'lib/capybara/driver/base.rb', line 86
def within_window(locator)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_window'
end
|