title: Mouse Hover action in C# Selenium webdriver
body: <p>I'm newbie to C# Selenium. I tried to automate an "sign in" and "sign out" of an LinkedIn Application. For that I have written the below code,</p>
  
  <p>Here the "Sign out" is an hidden element.</p>
  
  <p><strong>My code</strong></p>
  
  <pre><code>IWebDriver driver = new ChromeDriver();
  driver.Navigate().GoToUrl("https://www.linkedin.com/");
  driver.Manage().Window.Maximize();
  driver.FindElement(By.Id("login-email")).SendKeys("valid email ID");
  driver.FindElement(By.Id("login-password")).SendKeys("valid password");
  driver.FindElement(By.Name("submit")).Click();
  Actions action = new Actions(driver);
  action.MoveToElement(driver.FindElement(By.XPath("//*[@id='img-defer-id-1-6775']"))).Build().Perform(); // Getting an exception here
  Thread.Sleep(3000);
  driver.FindElement(By.XPath("//*[@id='account-sub-nav']/div/div[2]/ul/li[1]/div/span/span[3]/a")).Click();
  </code></pre>
  
  <p>But I'm getting an "No Such Element Exception". Even I tried to find the element by ID  but getting the same exception. Not sure what I did wrong.</p>
  
  <p>Can anyone help me.</p>