1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Expose execute_script to SESSION_METHODS

This commit is contained in:
Andrey Botalov 2013-06-20 23:40:32 +03:00
parent 89ba2c6ecc
commit 219974c3eb

View file

@ -37,10 +37,11 @@ module Capybara
:has_no_unchecked_field?, :query, :assert_selector, :assert_no_selector
]
SESSION_METHODS = [
:body, :html, :current_url, :current_host, :evaluate_script, :source,
:visit, :within, :within_fieldset, :within_table, :within_frame,
:within_window, :current_path, :save_page, :save_and_open_page,
:save_screenshot, :reset_session!, :response_headers, :status_code,
:body, :html, :source, :current_url, :current_host, :current_path,
:execute_script, :evaluate_script, :visit,
:within, :within_fieldset, :within_table, :within_frame, :within_window,
:save_page, :save_and_open_page, :save_screenshot,
:reset_session!, :response_headers, :status_code,
:title, :has_title?, :has_no_title?, :current_scope
]
DSL_METHODS = NODE_METHODS + SESSION_METHODS