| Class | Celerity::TextField |
| In: |
lib/celerity/watir_compatibility.rb
lib/celerity/elements/text_field.rb |
| Parent: | Object |
Class representing text field elements
This class is the main class for Text Fields Normally a user would not need to create this object as it is returned by the Watir::Container#text_field method
| NON_TEXT_TYPES | = | %w[file radio checkbox submit reset image button hidden] |
| TAGS | = | [ Identifier.new('textarea'), Identifier.new('input', :type => ["text", "password", /^(?!(#{ Regexp.union(*NON_TEXT_TYPES) })$)/]) ] |
| DEFAULT_HOW | = | :name |
| drag_contents_to | -> | dragContentsTo |
| value | -> | getContents |
This bascially just moves the text to the other text field using TextField#append TODO: check if HtmlUnit supports some kind of dragging.
A boolean version of TextField#contains_text
@param [String, Regexp] expected_text The text to look for. @return [boolean]