Dan Silva

Welcome to my Blog! My postings will mostly consist of technical solutions and musings, with some entertainment reviews (movies, books, tv shows/episodes, etc.), political rants, psychological observations of human behavior, and updates on mine and my family's life. Cheers.

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!
Posted by Unknown at 5/04/2012 12:51:00 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2018 (1)
    • ►  August (1)
  • ►  2016 (1)
    • ►  December (1)
  • ►  2015 (1)
    • ►  November (1)
  • ►  2013 (2)
    • ►  May (1)
    • ►  April (1)
  • ▼  2012 (2)
    • ►  November (1)
    • ▼  May (1)
      • How to do a 'hover' with Webdriver in Java....
  • ►  2011 (18)
    • ►  November (5)
    • ►  July (3)
    • ►  June (4)
    • ►  March (2)
    • ►  February (4)
  • ►  2010 (3)
    • ►  July (1)
    • ►  January (2)
  • ►  2009 (5)
    • ►  May (5)
  • ►  2008 (10)
    • ►  December (1)
    • ►  November (1)
    • ►  September (1)
    • ►  August (7)

About Me

Unknown
View my complete profile
Simple theme. Powered by Blogger.