MouseTrait.php in Zircon Profile 8.0
File
vendor/jcalderonzumba/mink-phantomjs-driver/src/MouseTrait.php
View source
<?php
namespace Zumba\Mink\Driver;
use Behat\Mink\Exception\DriverException;
trait MouseTrait {
public function mouseOver($xpath) {
$element = $this
->findElement($xpath, 1);
$this->browser
->hover($element["page_id"], $element["ids"][0]);
}
public function click($xpath) {
$elements = $this
->findElement($xpath, 1);
$this->browser
->click($elements["page_id"], $elements["ids"][0]);
}
public function doubleClick($xpath) {
$elements = $this
->findElement($xpath, 1);
$this->browser
->doubleClick($elements["page_id"], $elements["ids"][0]);
}
public function rightClick($xpath) {
$elements = $this
->findElement($xpath, 1);
$this->browser
->rightClick($elements["page_id"], $elements["ids"][0]);
}
}
Traits
Name |
Description |
MouseTrait |
Class MouseTrait
@package Zumba\Mink\Driver |