title: moveToElement() to perform a hover action
body: <p>Can somebody help showing why this is not working?</p>
  
  <p>Page Object:</p>
  
  <pre><code>import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.interactions.Actions;
  import org.openqa.selenium.support.CacheLookup;
  import org.openqa.selenium.support.FindBy;
  import org.openqa.selenium.support.How;
  import org.openqa.selenium.support.PageFactory;
  
      public class NavBarPO {
  
      WebDriver driver;
      Actions action;
  
      public NavBarPO(WebDriver driver){
          this.driver = driver;
          PageFactory.initElements(driver, this);
          action = new Actions(driver);
      }
          @CacheLookup
          @FindBy(how = How.CSS, using = "li.menu-item.menu-item-type-taxonomy.menu-item-object-wpsc_product_category.menu-item-has-children.has_children &gt; a")
          private WebElement product_Category;    
  
          public void hover_Product_Category(){
              action.moveToElement(product_Category);
          }      
  }
  </code></pre>
  
  <p>Test:</p>
  
  <pre><code>public class OpenDemos {
  
          @BeforeTest
          public void Initialize() {
              System.setProperty("webdriver.chrome.driver", "C:/Users/u6028938/Documents/Selenium Java/chromedriver.exe");
              System.setProperty("webdriver.gecko.driver", "C:/Users/u6028938/Documents/Selenium Java/geckodriver.exe");
          }
  
          @Test
            public void SecondTest() throws InterruptedException {
                WebDriver driver = new FirefoxDriver();
                NavBarPO nav = new NavBarPO(driver);
                driver.get("http://www.store.demoqa.com");
                Thread.sleep(3000);
                nav.Hover_Product_Category();
                System.out.println("Successfully Executed Test!");
                Thread.sleep(10000);
                driver.quit();
            }
      }
  </code></pre>
  
  <p>The <code>nav.hover_Product_Category()</code> simply does nothing, not even an error. When i use <code>.click()</code> instead of <code>.moveToElement()</code> the element is clicked and the dropdown that i want is displayed, so the selector is correct.</p>