[QA] upstream bug reported for page_object Ruby gem

S Page spage at wikimedia.org
Mon Sep 22 20:21:36 UTC 2014

Flow's post input fields morph from an input text field to a textarea upon
click. I assumed that was why we use "text_field", as it works with either.

I think your test is accessing the topic title (name="topiclist_topic"),
which continues to be an input text field after clicking, so textarea won't

We could make an intermediate Flow step definition
  When I enter "Foo" in morphing |field_name|

that turns into
  step I click in the <input field element>
  and it becomes a <textarea element>
  and I send_keys "My reply here" in the <textarea element>

but I'm not sure how in Ruby/Watir

On Mon, Sep 22, 2014 at 11:29 AM, Chris McMahon <cmcmahon at wikimedia.org>

> Hi,
> so I noticed last week that the Flow builds were getting deprecation
> warnings from the test framework saying  "Locating textareas with
> '#text_field' is deprecated. Please, use '#textarea' method instead."
> I don't like being deprecated, but upon updating the test, to my surprise,
> the page_object gem could no longer see the element.
> I filed an upstream bug for this:
> https://github.com/cheezy/page-object/issues/248
> In the meantime, let's keep using the text_field locator as long as it
> keeps working for us.

=S Page  Features engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/qa/attachments/20140922/553d6c54/attachment.html>

More information about the QA mailing list