The input element which has no type attributes should be regarded as a text field.
This commit is contained in:
parent
8ff36c4933
commit
741c31bf2b
|
@ -111,7 +111,7 @@ module Capybara
|
||||||
|
|
||||||
def text_field(locator, options={})
|
def text_field(locator, options={})
|
||||||
options = options.merge(:value => options[:with]) if options.has_key?(:with)
|
options = options.merge(:value => options[:with]) if options.has_key?(:with)
|
||||||
add_field(locator, "//input[@type!='radio' and @type!='checkbox' and @type!='hidden']", options)
|
add_field(locator, "//input[not(@type) or (@type!='radio' and @type!='checkbox' and @type!='hidden')]", options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def text_area(locator, options={})
|
def text_area(locator, options={})
|
||||||
|
|
Loading…
Reference in New Issue