Pass type through to document

This commit is contained in:
Jonas Nicklas 2013-02-17 15:28:28 +01:00
parent b37ef6d1f2
commit 2697a5bd8c
1 changed files with 3 additions and 3 deletions

View File

@ -17,10 +17,10 @@ module Capybara
#
# @return [String] The text of the document
#
def text
find(:xpath, '/html').text
def text(type=nil)
find(:xpath, '/html').text(type)
end
def title
session.driver.title
end