I am new to automated testing and recently started experimenting with Selenium (no prior experience with Qtp).
Using Selenium Web Driver and the java client, I want to test a menu and select one of the menu items from the list that opens when the mouse when the user moves the mouse over it. It closes when the mouse leaves the menu. This is done using :hover in css. I tried using:
I tried using the method, mouseMove() as well. But all I keep getting is the error message, ERROR: Element id=GlobalHoverInstance_MenuItem$3 not found.
My hunch is it's not recognizing the element (which might be because it doesn't see the menu options that display when hovering over the menu?). I am sure that the element Id I entered is valid since I checked it using firebug and xpath-checker add-ons.
Are you able to see the menu expanded on mouse over after using the command mouseOver. I think you can pause the execution and check, if the menu expands.
Also use regular expression pattern for the id=GlobalHoverInstance_MenuItem$3, since you have special characters in it!! May be u can use the Name/title/value of the element instead of ID if available.