<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 25, 2014 at 1:59 PM, Matthew Flaschen <span dir="ltr"><<a href="mailto:mflaschen@wikimedia.org" target="_blank">mflaschen@wikimedia.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">On 06/24/2014 07:03 PM, S Page wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
16:00 < superm401> chrismcmahon, do you know how I can test the CSS<br>
selectors for Watir?<br>
</blockquote>
<br></div>
I ended up testing this with pry-debugger. It's not perfect, but it works.<br></blockquote><div>pry-debugger doesn't work with Ruby 2.x, you need pry-byebug.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I documented this at <a href="https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Writing_tests#Debugging" target="_blank">https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Writing_tests#Debugging</a> .</blockquote>
<div>That's now a redirect to the existing <a href="https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Debugging">https://www.mediawiki.org/wiki/Quality_Assurance/Browser_testing/Debugging</a>, I merged your instructions.<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> However, I'm sure there are tricks I don't know yet, so please expand if you can.<br>
</blockquote><div><br></div><div>I can't figure out how to define a new foo_element and see if it matches anything.<br></div></div><br>-- <br><div dir="ltr">=S Page Features engineer<br></div>
</div></div>