title: Attempting to hover over an element using javascript in selenium with C#
body: <p>I have working in to create a test that causes a hidden element to appear on a page when an another element is hovered over by the mouse pointer, but I have not had much luck.  The element is not normally visible on the page, and can only be found or grabbed while it is visible.  I have tried the following to get it to appear, but it wants an Event as an element and I'm not too familiar with javascript.</p>
  
  <p><code>((IJavaScriptExecutor)Driver).ExecuteScript("arguments[0].dispatchEvent(mouseover);", elementToHoverOver);</code></p>
  
  <p>It tells me that mouseover is not defined, but I thought it was an event.  What is an event in javascript then, and can I do all this in one line of code using what I have above?</p>
  
  <p>I have also tried </p>
  
  <pre><code>Actions act = new Actions(Driver);
  act.MoveToElement(element).Build().Perform();
  </code></pre>
  
  <p>Followed by a wait, but this does not make the element appear, and clicking the element will not make the pop-up show either.</p>