Class: Capybara::Driver::Base
- Inherits:
-
Object
- Object
- Capybara::Driver::Base
- Defined in:
- lib/capybara/driver/base.rb
Instance Method Summary collapse
- #body ⇒ Object
- #cleanup! ⇒ Object
- #current_path ⇒ Object
- #current_url ⇒ Object
- #evaluate_script(script) ⇒ Object
- #execute_script(script) ⇒ Object
- #find(query) ⇒ Object
- #has_shortcircuit_timeout? ⇒ Boolean
- #response_headers ⇒ Object
- #source ⇒ Object
- #status_code ⇒ Object
- #visit(path) ⇒ Object
- #wait? ⇒ Boolean
- #wait_until(*args) ⇒ Object
- #within_frame(frame_id) ⇒ Object
Instance Method Details
#body ⇒ Object
41 42 43 |
# File 'lib/capybara/driver/base.rb', line 41 def body raise NotImplementedError end |
#cleanup! ⇒ Object
53 54 |
# File 'lib/capybara/driver/base.rb', line 53 def cleanup! end |
#current_path ⇒ Object
6 7 8 |
# File 'lib/capybara/driver/base.rb', line 6 def current_path URI.parse(current_url).path end |
#current_url ⇒ Object
2 3 4 |
# File 'lib/capybara/driver/base.rb', line 2 def current_url raise NotImplementedError end |
#evaluate_script(script) ⇒ Object
22 23 24 |
# File 'lib/capybara/driver/base.rb', line 22 def evaluate_script(script) raise Capybara::NotSupportedByDriverError end |
#execute_script(script) ⇒ Object
18 19 20 |
# File 'lib/capybara/driver/base.rb', line 18 def execute_script(script) raise Capybara::NotSupportedByDriverError end |
#find(query) ⇒ Object
14 15 16 |
# File 'lib/capybara/driver/base.rb', line 14 def find(query) raise NotImplementedError end |
#has_shortcircuit_timeout? ⇒ Boolean
56 57 58 |
# File 'lib/capybara/driver/base.rb', line 56 def has_shortcircuit_timeout? false end |
#response_headers ⇒ Object
33 34 35 |
# File 'lib/capybara/driver/base.rb', line 33 def response_headers raise Capybara::NotSupportedByDriverError end |
#source ⇒ Object
49 50 51 |
# File 'lib/capybara/driver/base.rb', line 49 def source raise NotImplementedError end |
#status_code ⇒ Object
37 38 39 |
# File 'lib/capybara/driver/base.rb', line 37 def status_code raise Capybara::NotSupportedByDriverError end |
#visit(path) ⇒ Object
10 11 12 |
# File 'lib/capybara/driver/base.rb', line 10 def visit(path) raise NotImplementedError end |
#wait? ⇒ Boolean
26 27 28 |
# File 'lib/capybara/driver/base.rb', line 26 def wait? false end |
#wait_until(*args) ⇒ Object
30 31 |
# File 'lib/capybara/driver/base.rb', line 30 def wait_until *args end |
#within_frame(frame_id) ⇒ Object
45 46 47 |
# File 'lib/capybara/driver/base.rb', line 45 def within_frame(frame_id) raise Capybara::NotSupportedByDriverError end |