Class: Capybara::Driver::Base

### Home Classes Methods

### In Files

- lib/capybara/driver/base.rb

### Parent

Object

### Methods

- #accept_modal
- #close_window
- #current_url
- #current_window_handle
- #dismiss_modal
- #evaluate_script
- #execute_script
- #find_css
- #find_xpath
- #go_back
- #go_forward
- #html
- #invalid_element_errors
- #maximize_window
- #needs_server?
- #no_such_window_error
- #open_new_window
- #reset!
- #resize_window_to
- #response_headers
- #save_screenshot
- #status_code
- #switch_to_window
- #visit
- #wait?
- #window_handles
- #window_size
- #within_frame
- #within_window

### Files

- another_test_file.txt
- test_file.txt

### Class/Module Index

Quicksearch

- Capybara
- Capybara::Ambiguous
- Capybara::CapybaraError
- Capybara::DSL
- Capybara::Driver
- Capybara::Driver::Base
- Capybara::Driver::Node
- Capybara::DriverNotFoundError
- Capybara::ElementNotFound
- Capybara::ExpectationNotMet
- Capybara::Features
- Capybara::FileNotFound
- Capybara::FrozenInTime
- Capybara::Helpers
- Capybara::InfiniteRedirectError
- Capybara::ModalNotFound
- Capybara::Node
- Capybara::Node::Actions
- Capybara::Node::Base
- Capybara::Node::Document
- Capybara::Node::DocumentMatchers
- Capybara::Node::Element
- Capybara::Node::Finders
- Capybara::Node::Matchers
- Capybara::Node::Simple
- Capybara::NotSupportedByDriverError
- Capybara::Queries
- Capybara::Queries::BaseQuery
- Capybara::Queries::TextQuery
- Capybara::Queries::TitleQuery
- Capybara::Query
- Capybara::RSpecMatchers
- Capybara::RSpecMatchers::BecomeClosed
- Capybara::RSpecMatchers::HaveSelector
- Capybara::RSpecMatchers::HaveText
- Capybara::RSpecMatchers::HaveTitle
- Capybara::RSpecMatchers::Matcher
- Capybara::RackTest
- Capybara::RackTest::Browser
- Capybara::RackTest::CSSHandlers
- Capybara::RackTest::Driver
- Capybara::RackTest::Form
- Capybara::RackTest::Form::NilUploadedFile
- Capybara::RackTest::Node
- Capybara::ReadOnlyElementError
- Capybara::Result
- Capybara::ScopeError
- Capybara::Selector
- Capybara::Selector::Filter
- Capybara::Selenium
- Capybara::Selenium::Driver
- Capybara::Selenium::Node
- Capybara::Server
- Capybara::Server::Middleware
- Capybara::Session
- Capybara::SpecHelper
- Capybara::UnselectNotAllowed
- Capybara::Window
- Capybara::WindowError
- TestApp
- TestApp::TestAppError
- Object

No matching classes.

# Capybara::Driver::Base

### Public Instance Methods

accept_modal(type, options={}, &blk) click to toggle source

Execute the block, and then accept the modal opened. @param type [:alert, :confirm, :prompt] @option options [Numeric] :wait How long to wait for the modal to appear after executing the block. @option options [String, Regexp] :text Text to verify is in the message shown in the modal @option options [String] :with Text to fill in in the case of a prompt @return [String] the message shown in the modal @raise [Capybara::ModalNotFound] if modal dialog hasn't been found

    # 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) click to toggle source

    # File lib/capybara/driver/base.rb, line 70
    def close_window(handle)
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#close_window'
    end

current_url() click to toggle source

    # File lib/capybara/driver/base.rb, line 2
    def current_url
      raise NotImplementedError
    end

current_window_handle() click to toggle source

    # 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) click to toggle source

Execute the block, and then dismiss the modal opened. @param type [:alert, :confirm, :prompt] @option options [Numeric] :wait How long to wait for the modal to appear after executing the block. @option options [String, Regexp] :text Text to verify is in the message shown in the modal @return [String] the message shown in the modal @raise [Capybara::ModalNotFound] if modal dialog hasn't been found

    # 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) click to toggle source

    # File lib/capybara/driver/base.rb, line 34
    def evaluate_script(script)
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#evaluate_script'
    end

execute_script(script) click to toggle source

    # File lib/capybara/driver/base.rb, line 30
    def execute_script(script)
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#execute_script'
    end

find_css(query) click to toggle source

    # File lib/capybara/driver/base.rb, line 14
    def find_css(query)
      raise NotImplementedError
    end

find_xpath(query) click to toggle source

    # File lib/capybara/driver/base.rb, line 10
    def find_xpath(query)
      raise NotImplementedError
    end

go_back() click to toggle source

    # File lib/capybara/driver/base.rb, line 22
    def go_back
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#go_back'
    end

go_forward() click to toggle source

    # File lib/capybara/driver/base.rb, line 26
    def go_forward
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#go_forward'
    end

html() click to toggle source

    # File lib/capybara/driver/base.rb, line 18
    def html
      raise NotImplementedError
    end

invalid_element_errors() click to toggle source

    # File lib/capybara/driver/base.rb, line 122
    def invalid_element_errors
      []
    end

maximize_window(handle) click to toggle source

    # File lib/capybara/driver/base.rb, line 66
    def maximize_window(handle)
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#maximize_current_window'
    end

needs_server?() click to toggle source

    # File lib/capybara/driver/base.rb, line 133
    def needs_server?
      false
    end

no_such_window_error() click to toggle source

    # 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() click to toggle source

    # File lib/capybara/driver/base.rb, line 78
    def open_new_window
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#open_new_window'
    end

reset!() click to toggle source

    # File lib/capybara/driver/base.rb, line 130
    def reset!
    end

resize_window_to(handle, width, height) click to toggle source

    # 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

response_headers() click to toggle source

    # File lib/capybara/driver/base.rb, line 42
    def response_headers
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#response_headers'
    end

save_screenshot(path, options={}) click to toggle source

    # File lib/capybara/driver/base.rb, line 38
    def save_screenshot(path, options={})
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#save_screenshot'
    end

status_code() click to toggle source

    # File lib/capybara/driver/base.rb, line 46
    def status_code
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#status_code'
    end

switch_to_window(handle) click to toggle source

    # 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) click to toggle source

    # File lib/capybara/driver/base.rb, line 6
    def visit(path)
      raise NotImplementedError
    end

wait?() click to toggle source

    # File lib/capybara/driver/base.rb, line 126
    def wait?
      false
    end

window_handles() click to toggle source

    # File lib/capybara/driver/base.rb, line 74
    def window_handles
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#window_handles'
    end

window_size(handle) click to toggle source

    # File lib/capybara/driver/base.rb, line 58
    def window_size(handle)
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#window_size'
    end

within_frame(frame_handle) click to toggle source

    # 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) click to toggle source

    # File lib/capybara/driver/base.rb, line 86
    def within_window(locator)
      raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_window'
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.