You are here

public function MouseTrait::rightClick 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::rightClick()

Right click on element found via xpath

Parameters

string $xpath:

Throws

DriverException

File

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

Class

MouseTrait
Class MouseTrait @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

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