lib/watir-webdriver/elements/input.rb in watir-webdriver-0.0.9 vs lib/watir-webdriver/elements/input.rb in watir-webdriver-0.1.0

- old
+ new

@@ -36,59 +36,7 @@ # we return 'text' if the type is invalid # not sure if we really should do this TextFieldLocator::NON_TEXT_TYPES.include?(value) ? value : 'text' end - # - # not sure about this - # - # this is mostly useful if you're using Browser#element_by_xpath, and want to - # 'cast' the returned Input instance to one of the subclasses - # - - # - # @return [Watir::CheckBox] - # - - def to_checkbox - assert_exists - CheckBox.from(@parent, @element) - end - - # - # @return [Watir::Radio] - # - - def to_radio - assert_exists - Radio.from(@parent, @element) - end - - # - # @return [Watir::Button] - # - - def to_button - assert_exists - Button.from(@parent, @element) - end - - # - # @return [Watir::TextField] - # - - def to_text_field - assert_exists - TextField.from(@parent, @element) - end - - # - # @return [Watir::FileField] - # - - def to_file_field - assert_exists - FileField.from(@parent, @element) - end - end # Input end # Watir