Pass type through to document
This commit is contained in:
parent
b37ef6d1f2
commit
2697a5bd8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue