nil would be correct, as that method has nothing it returns.   What you 
would want to do when using that in irb is pay attention to the screen or 
firebug, to see that things you expect to see (such as perhaps menus being 
displayed due to a CSS psuedoclass triggered by the hover state with regard 
to that object)  Or changes to object properties, etc.

I know it's a bit strange to see nothing come back, since a lot of other 
methods either return an object type, a page load time, etc but in this 
case all it does it tell the browser to try to move the mouse over the 
object

On Tuesday, March 27, 2012 6:40:28 AM UTC-7, Litha K wrote:
>
> Hi, 
>
> Many thanks for replying to my query. 
>
> I have upgraded to version 0.5.4, however when I do 
>
> browser.link(:id, 'men).hover 
>
> it returns nil. 
>
> Any thoughts please? 
>
> Thanks, 
> Jay 
>
> On Mar 27, 3:07 am, Chuck van der Linden <[email protected]> wrote: 
> > "Why not upgrade from your old 0.3.3 to the current version (0.5.4) and 
> > make use of the new .hover method" 
> > 
> > (fixed that for you  <grin>) 
> > 
> > You are on the right track Oscar, but that method was added pretty 
> > recently, and her old 3.3 version that she said she is using doesn't 
> > support it. 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Monday, March 26, 2012 11:25:28 AM UTC-7, Oscar.Rieken wrote: 
> > 
> > >http://rubydoc.info/gems/watir-webdriver/0.5.3/Watir/Element#hover-in... 
>
> > 
> > > sorry hit send to fast 
> > 
> > > On Mon, Mar 26, 2012 at 2:23 PM, Oscar Rieken <[email protected]> 
> wrote: 
> > 
> > >> why not use .hover? 
> > 
> > >> On Mon, Mar 26, 2012 at 2:19 PM, Litha K <[email protected]> 
> wrote: 
> > 
> > >>> Anyone? 
> > 
> > >>> On Mar 25, 8:04 pm, Litha K <[email protected]> wrote: 
> > >>> > Hi, 
> > 
> > >>> > I am using watir-webdriver 0.3.3 and trying to automate a scenario 
> to 
> > >>> > mouse hover on a link to select sublinks. 
> > 
> > >>> > For example: if I go to: 
> > 
> > >>> > 1. www,cocosa.com 
> > >>> > 2. browser.link(:id, 'men').fire_event("onmouseover") 
> > 
> > >>> > It returns true, but doesn't seem to mouse over on the link. 
> > 
> > >>> > Any thoughts or suggestions would be highly appreciated. 
> > 
> > >>> > Thanks, 
> > >>> > Jay 
> > 
> > >>> -- 
> > >>> Before posting, please readhttp://watir.com/support. In short: 
> search 
> > >>> before you ask, be nice. 
> > 
> > >>> [email protected] 
> > >>>http://groups.google.com/group/watir-general 
> > >>> [email protected]<
> http://groups.google.com/group/watir-general%0Awatir-general+unsubscr...>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to