well that's annoying. What platforn are you running on? If I remember right hover might depend on native events which is only enabled by default on windows.
I think the extjs folks have a demo site, can you see if you can find your control on it and give us a link to that page. That would give folks something to work with. there are a few other ways you might be able to skin this particular cat, one thing I and others have done is using execute-script to fire off some jquery code that flips the visibility state of the element (same thing that happens when CSS see's a mouseover an triggers a :hover psuedo class to come into effect. Which can work great IF your site happens to be using jquery. Here's a link to a similar discussion from a few months back https://groups.google.com/d/topic/watir-general/OIpBg7iS3Wo/discussion On Thursday, April 19, 2012 8:02:33 PM UTC-7, mndude wrote: > > The "hover" method produces the same result as "click" on the top > menu. > > On Apr 19, 5:01 pm, Chuck van der Linden <[email protected]> wrote: > > if you are using watir-webdriver have you tried the 'hover' method to > get > > the dropdown to appear? > > > > > > > > > > > > > > > > On Thursday, April 19, 2012 2:52:27 PM UTC-7, mndude wrote: > > > > > I have a web app with a top menu bar with drop down menus in it driven > > > by javascript (extjs). I can easily access the menu items in Firefox > > > and Chrome. But IE does not work the same way. The menu requires > > > either a mouse hover or click on the top item to drop down and then a > > > click on the item to be selected. This is easy and fast in FF, > > > Chrome: > > > > > driver.p( :text => topmenu ).when_present.click > > > driver.a( :text => submenu ).when_present.click > > > > > In IE what happens is that the first click drops down the menu, but > > > then the menu disappears before the 2nd line can complete the click on > > > the actual item to be selected. The 2nd click fails because the item > > > is, of course, not visible. > > > > > Watir webdriver appears to not have the Selenium webdriver actions? > > > In Selenium webdriver I would try something like this: > > > > > driver.action.click(topmenu).click(submenu).perform > > > > > Is there a way to access the Selenium webdriver actions in Watir > > > webdriver? Or some other solution for IE in this situation? The > > > Watir browser object appears to not have an "action" set of methods. -- 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]
