<div dir="ltr">Hi S,<div><br></div><div>apologies for the late reply, I wanted to comment on so many things in your e-mail that I never had the time to write such a long message. :)</div><div><br></div><div>I will do my best now in the limited time that I have a the moment. Comments are inline.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 27, 2013 at 7:26 AM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><div><div><div>The Flow extension's features/flow_logged_in.feature fails for me asserting "Then links to talk and contrib should be visible" after "When I hover over the author link". I know exactly where it's failing, but not why.<br>


<br></div>Whenever a test fails and it's not simply due to a page element changed its name or text, I have little idea how to debug it. SInce the cycle time for a test requiring login is over a minute, it's painful to try  line-by-line changes. I'm used to interactively debugging jQuery selectors in a browser console, what's the equivalent for browser tests?<br>

</div></div></div></blockquote><div><br></div><div>I usually use irb[1][2], but there are alternatives, like pry[3].</div><div> </div><div><br></div><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">

<div dir="ltr"><div>* Is there a way to break into the Ruby debugger when running a cucumber test?<br></div></div></blockquote><div><br></div><div>Of course! In fact, there are several options[4][5][6][7]. I do not have a lot of experience with any of the, because most of the problems are solved using irb.</div>

<div> </div><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"><div dir="ltr"><div></div><div>* Is there a flash() function to flicker the page element that I'm trying to select, or a dump() function?<br>

</div></div></blockquote><div><br></div><div>It is even called flash[8]! I am not sure what you expect from dump(), but you can get element's html[9], if that is what you need.</div><div> </div><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">

<div dir="ltr"><div></div>
* Should I see a mouseover effect in Firefox WebDriver while I'm watching a test that calls some_element.fire_event('onmouseover') ?<br></div></blockquote><div><br></div><div>hover[10] should fire onmouseover event, and yes, you should see something happening.</div>

<div> </div><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"><div dir="ltr"><div>Thanks for any suggestions or pointers.<br>

</div><div>
<br clear="all"><div><div>(Chris,<br>the Flow code changed to do a CSS animations on hover to fade in the the links, so I tried adding a sleep. The hover effect is on the parent element of the element that the test does a mouseover on, so I tried changing the mouseover element. Neither helped.)</div>

</div></div></div></blockquote><div><br></div><div>Code or it did not happen! :) Can you push the code you have so far to gerrit and add me as a reviewer. </div><div><br></div><div>Let me know if you need help using any of the tools, or if anything is still unclear.</div>

<div><br></div><div>Željko</div><div>--</div><div>1: <a href="https://en.wikipedia.org/wiki/Interactive_Ruby_Shell">https://en.wikipedia.org/wiki/Interactive_Ruby_Shell</a></div><div>2: <a href="https://www.ruby-lang.org/en/documentation/quickstart/">https://www.ruby-lang.org/en/documentation/quickstart/</a></div>

<div>3: <a href="http://pryrepl.org/">http://pryrepl.org/</a></div><div>4: <a href="https://www.ruby-toolbox.com/projects/debugger">https://www.ruby-toolbox.com/projects/debugger</a></div><div>5: <a href="https://www.ruby-toolbox.com/projects/ruby-debug">https://www.ruby-toolbox.com/projects/ruby-debug</a></div>

<div>6: <a href="https://www.ruby-toolbox.com/projects/pry-debugger">https://www.ruby-toolbox.com/projects/pry-debugger</a></div><div>7: <a href="https://www.ruby-toolbox.com/projects/ruby-debug-ide">https://www.ruby-toolbox.com/projects/ruby-debug-ide</a></div>

<div>8: <a href="http://rdoc.info/gems/watir-webdriver/Watir/Element#flash-instance_method">http://rdoc.info/gems/watir-webdriver/Watir/Element#flash-instance_method</a></div><div>9: <a href="http://rdoc.info/gems/watir-webdriver/Watir/Element#html-instance_method">http://rdoc.info/gems/watir-webdriver/Watir/Element#html-instance_method</a></div>

<div>10: <a href="http://rdoc.info/gems/watir-webdriver/Watir/Element#hover-instance_method">http://rdoc.info/gems/watir-webdriver/Watir/Element#hover-instance_method</a></div></div></div></div>