You are here

public function MouseTrait::mouseOver in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/mink-phantomjs-driver/src/MouseTrait.php \Zumba\Mink\Driver\MouseTrait::mouseOver()

Generates a mouseover event on the given element by xpath

Parameters

string $xpath:

Throws

DriverException

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/MouseTrait.php, line 18

Class

MouseTrait
Class MouseTrait @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

public function mouseOver($xpath) {
  $element = $this
    ->findElement($xpath, 1);
  $this->browser
    ->hover($element["page_id"], $element["ids"][0]);
}