mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Put save_page and save_and_open_page in the right place, closes #311
This commit is contained in:
parent
218510e64f
commit
dd877b8cc6
1 changed files with 13 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue