diff --git a/lib/capybara/session.rb b/lib/capybara/session.rb index 94fea963..f0519fb5 100644 --- a/lib/capybara/session.rb +++ b/lib/capybara/session.rb @@ -27,15 +27,21 @@ module Capybara # class Session NODE_METHODS = [ - :all, :first, :attach_file, :text, :check, :choose, :click_link_or_button, :click_button, :click_link, - :field_labeled, :fill_in, :find, :find_button, :find_by_id, :find_field, :find_link, :has_content?, :has_css?, - :has_no_content?, :has_no_css?, :has_no_xpath?, :has_xpath?, :save_page, :save_and_open_page, :select, :uncheck, - :has_link?, :has_no_link?, :has_button?, - :has_no_button?, :has_field?, :has_no_field?, :has_checked_field?, :has_unchecked_field?, :has_no_table?, :has_table?, - :unselect, :has_select?, :has_no_select?, :has_selector?, :has_no_selector?, :click_on, :has_no_checked_field?, :has_no_unchecked_field? + :all, :first, :attach_file, :text, :check, :choose, + :click_link_or_button, :click_button, :click_link, :field_labeled, + :fill_in, :find, :find_button, :find_by_id, :find_field, :find_link, + :has_content?, :has_css?, :has_no_content?, :has_no_css?, :has_no_xpath?, + :has_xpath?, :select, :uncheck, :has_link?, :has_no_link?, :has_button?, + :has_no_button?, :has_field?, :has_no_field?, :has_checked_field?, + :has_unchecked_field?, :has_no_table?, :has_table?, :unselect, + :has_select?, :has_no_select?, :has_selector?, :has_no_selector?, + :click_on, :has_no_checked_field?, :has_no_unchecked_field? ] SESSION_METHODS = [ - :body, :html, :current_url, :current_host, :evaluate_script, :source, :visit, :wait_until, :within, :within_fieldset, :within_table, :within_frame, :within_window, :current_path + :body, :html, :current_url, :current_host, :evaluate_script, :source, + :visit, :wait_until, :within, :within_fieldset, :within_table, + :within_frame, :within_window, :current_path, :save_page, + :save_and_open_page ] DSL_METHODS = NODE_METHODS + SESSION_METHODS