On Mon, Sep 22, 2014 at 1:21 PM, S Page <[email protected]> wrote: > 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 > work. >
Yes, I updated some other tests about "Reason for hiding/suppressing/whatever" for the morphing text fields yesterday. In those cases the input had no type at all assigned, so page_object (correctly) saw it as a "button". But in this case, something has gone subtly weird in the page_object internals. "text_field" is actually deprecated, and "textarea" should identify any sort of text input. In other words, whether right or wrong, the behavior of these locators in page_object should be the same and it's not. -Chris > > 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 <[email protected]> > wrote: > >> >> >> 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 > > _______________________________________________ > QA mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/qa > >
_______________________________________________ QA mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/qa
