I have a link with an id:
<a href="#" onclick="return false();" id="lol">
In my test:
selenium.click("lol"); //when running the test, the click will just end up selecting the item, not firing off the frameworks javascript
This does not register the click the same! There is javascript that is part of a complex framework which will cause a div to popup. This works in firefox.
But this does work as a fix:
selenium.click("lol"); //when running the test, the click will just end up selecting the item, not firing off the frameworks javascript
selenium.keyPress("lol", "\\13"); //press enter key, since the click ended up selecting it
The fix does work. However, what is going on here? It seems that selenium.click() != [actual browser click event]. Can anyone help shed some light on these inner workings?