title: Mouse hover in selenium using Java
body: <p><a href="https://i.stack.imgur.com/qChww.jpg" rel="nofollow noreferrer">Need perform hover on Electronics highlighted on below image</a></p>
  
  <pre><code>    cd.get("http://flipkart.com/");
      cd.manage().window().maximize();
      Actions mobile = new Actions(cd);
      WebElement electronics= cd.findElement(
      By.xpath(".//*[@id='container']/div/header/div[2]/div/ul/li[1]/a/span"));
      //electronics.click();
      mobile.moveToElement(electronics);
      mobile.build().perform();
  </code></pre>