Did not say but tried to use.
There were problems with Firefox 2 when using this method: events do not occure.
In any case it does not solve the problem: :hover styles do not apply when using it.
There is simple test that could clearly see the problem.
*Test steps:*
1. Open the
http://openqa.org/ in Fx with Selenium IDE and Firebug
2. Expect the Selenium link in the Project tab. It has a:hover {color:red} style and it is red when hovering it.
3. Open the Firebug and type
document.getElementById("menu").getElementsByTagName("a")[0].onmouseover = function(){this.style.backgroundColor = "grey";};
<Enter>
to add simple mouseover event handler to this link.
4. Open the Selenium IDE. Type and execute the command
mouseOver //a[@href="
http://seleniumhq.org/"]
*Actual result:*
The link is blue with grey background.
*Expected result:*
The link is red with grey background.
If you know any workaround that allows Selenium to apply :hover style rule to the link please write. I believe it would be answer to my question.