In general, when you try to automate a web page using a browser, you have two options for simulating custom events. You can either simulate them using JavaScript, or use OS-level mechanisms (so-called "native events") to simulate mouse and keyboard events. Both approaches have their pitfalls.
, JavaScript, , , , , . Selenium RC , Selenium WebDriver Firefox IE. . . , " " , CSS :hover, JavaScript, . , JavaScript, JavaScript, , .
, , . , - , , . , , . , API SendMessage, Windows, , , . - API SendInput, API . WebDriver , SendMessage. IE, , SendInput.
, , . PhantomJS - , WebDriver , , #. , .