<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 1:21 PM, S Page <span dir="ltr"><<a href="mailto:spage@wikimedia.org" target="_blank">spage@wikimedia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>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.<br></div></div><div><br></div><div>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.<br></div></div></blockquote><div><br></div><div>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". </div><div><br></div><div>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.</div><div>-Chris </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br>We could make an intermediate Flow step definition<br></div><div>  When I enter "Foo" in morphing |field_name|<br><br></div><div>that turns into <br></div><div>  step I click in the <input field element><br></div><div>  and it becomes a <textarea element><br></div><div>  and I send_keys "My reply here" in the <textarea element><br><br></div><div>but I'm not sure how in Ruby/Watir<br></div><div><div class="h5"><div><br></div><div><br></div>On Mon, Sep 22, 2014 at 11:29 AM, Chris McMahon <span dir="ltr"><<a href="mailto:cmcmahon@wikimedia.org" target="_blank">cmcmahon@wikimedia.org</a>></span> wrote:<br></div></div><div><div><div><div><div class="gmail_extra"><div><div class="h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><div dir="ltr"><br><div>Hi, </div><div><br></div><div>so I noticed last week that the Flow builds were getting deprecation warnings from the test framework saying <span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;line-height:22.4px"> </span><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;line-height:22.4px">"Locating textareas with '#text_field' is deprecated. Please, use '#textarea' method instead."</span></div><div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;line-height:22.4px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:"Helvetica Neue",Helvetica,"Segoe UI",Arial,freesans,sans-serif;line-height:22.4px">I don't like being deprecated, but upon updating the test, to my surprise, the page_object gem could no longer see the element.  </span></div><div><br></div><div>I filed an upstream bug for this: <a href="https://github.com/cheezy/page-object/issues/248" target="_blank">https://github.com/cheezy/page-object/issues/248</a></div><div><br></div><div>In the meantime, let's keep using the text_field locator as long as it keeps working for us. </div><span></span></div></blockquote></div><br></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">=S Page  Features engineer<br></div>
</font></span></div></div></div></div></div></div>
<br>_______________________________________________<br>
QA mailing list<br>
<a href="mailto:QA@lists.wikimedia.org">QA@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/qa" target="_blank">https://lists.wikimedia.org/mailman/listinfo/qa</a><br>
<br></blockquote></div><br></div></div>