Class: Capybara::Rc::Adapter

Inherits:
Object
  • Object
show all
Includes:
Accessors, Actions, Extensions, Modals
Defined in:
lib/capybara/rc/adapter.rb

Constant Summary

Constants included from Accessors

Capybara::Rc::Accessors::WAIT_FOR_CONDITION_DELAY_SECONDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Modals

#choose_cancel_on_next_confirmation, #choose_ok_on_next_confirmation, #get_confirmation

Methods included from Extensions

#capybara_find_by_locator

Methods included from SeleniumRcLocators

#parse_selenium_rc_locator, #parse_selenium_rc_select_option_locator, #parse_selenium_rc_string_pattern

Methods included from Actions

#check, #click, #drag_and_drop_to_object, #get_eval, #open, #run_script, #select, #type, #type_keys, #uncheck

Methods included from Accessors

#get_attribute, #get_html_source, #get_location, #get_select_options, #get_selected_label, #get_selected_value, #get_text, #get_title, #get_value, #get_xpath_count, #is_checked, #is_element_present, #is_text_present, #is_visible, #wait_for_condition

Constructor Details

#initialize(session) ⇒ Adapter

Returns a new instance of Adapter.


16
17
18
19
# File 'lib/capybara/rc/adapter.rb', line 16

def initialize(session)
  super
  @session = session
end

Instance Attribute Details

#sessionObject (readonly)

Returns the value of attribute session


14
15
16
# File 'lib/capybara/rc/adapter.rb', line 14

def session
  @session
end

Instance Method Details

#wait_for_page_to_load(timeout) ⇒ Object


21
22
23
# File 'lib/capybara/rc/adapter.rb', line 21

def wait_for_page_to_load(timeout)
  # Capybara always waits, so nothing to do here.
end