Class: Capybara::Rc::Adapter
- Inherits:
-
Object
- Object
- Capybara::Rc::Adapter
- Includes:
- Accessors, Actions, Extensions, Modals, Windows
- Defined in:
- lib/capybara/rc/adapter.rb
Constant Summary
Constants included from Windows
Constants included from Accessors
Capybara::Rc::Accessors::WAIT_FOR_CONDITION_DELAY_SECONDS
Instance Attribute Summary collapse
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(session) ⇒ Adapter
constructor
A new instance of Adapter.
- #wait_for_page_to_load(timeout) ⇒ Object
Methods included from Windows
#close, #get_all_window_names, #open_window, #select_window, #window_maximize
Methods included from Modals
#choose_cancel_on_next_confirmation, #choose_ok_on_next_confirmation, #get_confirmation
Methods included from Extensions
#capybara_find_by_locator, #capybara_has_locator?, #capybara_has_no_locator?
Methods included from SeleniumRcLocators
#parse_selenium_rc_locator, #parse_selenium_rc_select_option_locator, #parse_selenium_rc_string_pattern, #parse_selenium_rc_window_locator
Methods included from Actions
#attach_file, #check, #click, #drag_and_drop, #drag_and_drop_to_object, #get_eval, #go_back, #mouse_over, #open, #refresh, #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_table, #get_text, #get_title, #get_value, #get_xpath_count, #is_checked, #is_editable, #is_element_present, #is_text_present, #is_visible, #wait_for_condition
Constructor Details
#initialize(session) ⇒ Adapter
Returns a new instance of Adapter.
18 19 20 21 |
# File 'lib/capybara/rc/adapter.rb', line 18 def initialize(session) super @session = session end |
Instance Attribute Details
#session ⇒ Object (readonly)
Returns the value of attribute session.
16 17 18 |
# File 'lib/capybara/rc/adapter.rb', line 16 def session @session end |
Instance Method Details
#wait_for_page_to_load(timeout) ⇒ Object
23 24 25 |
# File 'lib/capybara/rc/adapter.rb', line 23 def wait_for_page_to_load(timeout) # Capybara always waits, so nothing to do here. end |