public function moveMouseOver($cssOrXPath = null, $offsetX = null, $offsetY = null)
    {
        $where = null;
        if (null !== $cssOrXPath) {
            $el = $this->matchFirstOrFail($this->getBaseElement(), $cssOrXPath);
            $where = $el->getCoordinates();
        }

        $this->webDriver->getMouse()->mouseMove($where, $offsetX, $offsetY);
    }
public function moveMouseOver($cssOrXPath = null, $offsetX = null, $offsetY = null)
    {
        $where = null;
        if (null !== $cssOrXPath) {
            $el = $this->matchFirstOrFail($this->getBaseElement(), $cssOrXPath);
            $where = $el->getCoordinates();
        }

        $this->webDriver->getMouse()->mouseMove($where, $offsetX, $offsetY);
    }
public function moveMouseOver ( $ cssOrXPath = null , $ offsetX = null , $ offsetY = null ) { $ where = null ; if ( null !== $ cssOrXPath ) { $ el = $ this -> matchFirstOrFail ( $ this -> getBaseElement ( ) , $ cssOrXPath ) ; $ where = $ el -> getCoordinates ( ) ; } $ this -> webDriver -> getMouse ( ) -> mouseMove ( $ where , $ offsetX , $ offsetY ) ; }
Move mouse over the first element matched by the given locator.
If the first parameter null then the page is used.
If the second and third parameters are given,
then the mouse is moved to an offset of the element's top-left corner.
Otherwise, the mouse is moved to the center of the element.

``` php
<?php
$I->moveMouseOver(['css' => '.checkout']);
$I->moveMouseOver(null, 20, 50);
$I->moveMouseOver(['css' => '.checkout'], 20, 50);
?>
```

@param string $cssOrXPath css or xpath of the web element
@param int $offsetX
@param int $offsetY

@throws \Codeception\Exception\ElementNotFound
Move mouse over the first element matched by the given locator . If the first parameter null then the page is used . If the second and third parameters are given then the mouse is moved to an offset of the element s top - left corner . Otherwise the mouse is moved to the center of the element .