This content has been marked as final.
Show 2 replies
-
1. Re: How to test a toolTip with Selenium?
lfryc Sep 17, 2009 3:19 AM (in response to mmorier)Hello,
i'm not sure about windows environment, but maybe you can be inspired:
This is ToolTip functional test for RichFaces Demo (http://livedemo.exadel.com/richfaces-demo/):
http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/samples/richfaces-demo/functional-test/src/test/java/org/jboss/richfaces/integrationTest/tooltip/TooltipTestCase.java
It uses own selenium extensions, specifically implementation of mouseOverAt(String locator, String coords), which calls javascript function doMouseOverAt(...):/** * Simulates a user hovering a mouse over the specified element at specific * coordinates relative to element. * * @param locator * element's locator * @param coordString * specifies the x,y position (i.e. - 10,20) of the mouse event * relative to the element returned by the locator. */ Selenium.prototype.doMouseOverAt = function(locator, coordString) { var element = this.browserbot.findElement(locator); var clientXY = getClientXY(element, coordString) this.browserbot.triggerMouseEvent(element, 'mouseover', true, clientXY[0], clientXY[1]); }
-
2. Re: How to test a toolTip with Selenium?
mmorier Sep 18, 2009 5:39 AM (in response to mmorier)Hello,
Thanks for your help. I test it as soon as possible and I tell back if it is ok.