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

#body returns the unmodified source, instead of the modified HTML. Closes #394

This commit is contained in:
Jonas Nicklas 2011-11-15 16:58:05 +01:00
parent dff278db53
commit f4360f6099

View file

@ -30,7 +30,7 @@ module Capybara
: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_text?, :has_css?, :has_no_content?, :has_no_text?,
:has_content?, :has_text?, :has_css?, :has_no_content?, :has_no_text?,
: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?,
@ -97,10 +97,9 @@ module Capybara
#
# @return [String] A snapshot of the HTML of the current document, as it looks right now (potentially modified by JavaScript).
#
def body
def html
driver.body
end
alias_method :html, :body
##
#
@ -109,6 +108,7 @@ module Capybara
def source
driver.source
end
alias_method :body, :source
##
#