Friday, May 4, 2012

How to do a 'hover' with Webdriver in Java....

I had a crazy time trying to recreate our hover functionality, and was having troubles.  But then I found this code:


Element item = webDriver.findElement(By.id("superman");
Actions builder = new Actions(webDriver);    
builder.clickAndHold(item);


It works like a charm!

No comments: