Flow browser tests have both
textarea(:new_topic_body, name: "topiclist_content")
and
text_area(:post_edit, css: ".flow-edit-post-form textarea")
But they're not interchangeable. I wanted to identify a "dialog_input"
textarea within a dialog_element, and this:
textarea(:dialog_input) do |page|
page.dialog_element.textarea_element(name: "topic_reason")
end
failed with
undefined method `textarea_element' for
#<Watir::Div:0x000000039a9c70> (NoMethodError)
Instead I had to use text_area_element
page.dialog_element.text_area_element(name: "topic_reason")
Working with the Cheezy Watir cucumber Ruby Selenium WebDriver stack makes
me feel clueless :-/
--
=S Page Features engineer
_______________________________________________
QA mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/qa