title: How to use Actions class in Selenium WebDriver/facebook WebDriver using phpunit?
body: <p>I am using facebook php webdriver and I want to use Actions class to mouse hover on an element, trying different ways to do so, but not working. please help me where I am going wrong!
  Here is the code-</p>
  
  <pre><code>{
          $this-&gt;webDriver-&gt;get($this-&gt;url);
          $id = $this-&gt;webDriver-&gt;findElement(WebDriverBy::id("email"));
          $id-&gt;sendKeys("email");
  
          $pass = $this-&gt;webDriver-&gt;findElement(WebDriverBy::id("password"));
          $pass-&gt;sendKeys("passwd");
  
  $login = $this-&gt;webDriver-&gt;findElement(WebDriverBy::xpath("//input[@value='Login']"));
          $login-&gt;click();
  
          $this-&gt;assertContains('dashboard/site',$this-&gt;webDriver-&gt;getCurrentURL());
  
          $this-&gt;webDriver-&gt;findElement(WebDriverBy::xpath("html/body/nav[2]/div/ul/li[1]/a"))-&gt;click();
  
          $this-&gt;webDriver-&gt;findElement(WebDriverBy::xpath("//a[contains(text(),'Care Pathways')]"))-&gt;click();
  
          $this-&gt;webDriver-&gt;findElement(WebDriverBy::xpath("//input[@type='search']"))-&gt;sendKeys("QA Harness: Test1");
  
      $element = $this-&gt;webDriver-&gt;findElement(WebDriverBy::xpath(".//*[@id='package-list']/tbody/tr/td[1]/a/i"));
  
          $this-&gt;webDriver-&gt;moveToElement(WebDriverElement:: $element-&gt;isDisplayed())-&gt;perform();
  
    //$this-&gt;webDriver-&gt;action(WebDriverActions:: )-&gt;moveToElement($element)-&gt;perform();
  
  //$this-&gt;webDriver-&gt;getMouse()-&gt;mouseMove($element-&gt;getCoordinates());
  //        $this-&gt;webDriver-&gt;getMouse()-&gt;click();
  
          //$this-&gt;webDriver-&gt;findElement(WebDriverBy::xpath("html/body/div[1]/div/div[1]/a[3]"))-&gt;click();
      }
  }
  </code></pre>