<div dir="ltr"><div class="gmail_extra">On Fri, Sep 27, 2013 at 6:14 PM, Amir E. Aharoni <span dir="ltr"><<a href="mailto:amir.aharoni@mail.huji.ac.il" target="_blank">amir.aharoni@mail.huji.ac.il</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> It would be even more useful to have some way to find how to replace them with non-deprecated methods, though :)</blockquote>
</div><br></div>As far as I understand it, page-object gem implements only a subset of selenium-webdriver and watir-webdriver API. Page-object allows you to access underlying webdriver API, but it complains (because that functionality could be removed soon). From my experience, if you can prove that the part of the webdriver API is used commonly, page-object developer will add support for it.<br>
<br>In the meantime, there is a workaround if you need to use webdriver API but do not want to see page-object deprecation warnings.<br><br>So, in the above example, change<br><br>(FooPage).content_element.select_text "This is a new line"<br>
<br>to<br><br>(FooPage).content_element.element.select_text "This is a new line"<br><br>Thanks to Plavi for letting me know about the trick[1].<br><br>Ċ½eljko<br>--<br>1: <a href="https://github.com/wikimedia/qa-browsertests/commit/dfef4501c20c7a0f203d6393d9784ae24547de01">https://github.com/wikimedia/qa-browsertests/commit/dfef4501c20c7a0f203d6393d9784ae24547de01</a><br>
</div>