public function clickWithRightButton($cssOrXPath = null, $offsetX = null, $offsetY = null)
    {
        $this->moveMouseOver($cssOrXPath, $offsetX, $offsetY);
        $this->webDriver->getMouse()->contextClick();
    }
public function clickWithRightButton($cssOrXPath = null, $offsetX = null, $offsetY = null)
    {
        $this->moveMouseOver($cssOrXPath, $offsetX, $offsetY);
        $this->webDriver->getMouse()->contextClick();
    }
public function clickWithRightButton ( $ cssOrXPath = null , $ offsetX = null , $ offsetY = null ) { $ this -> moveMouseOver ( $ cssOrXPath , $ offsetX , $ offsetY ) ; $ this -> webDriver -> getMouse ( ) -> contextClick ( ) ; }
Performs contextual click with the right mouse button on an element.
If the first parameter `null` then the offset is relative to the actual mouse position.
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->clickWithRightButton(['css' => '.checkout']);
$I->clickWithRightButton(null, 20, 50);
$I->clickWithRightButton(['css' => '.checkout'], 20, 50);
?>
```

@param string $cssOrXPath css or xpath of the web element (body by default).
@param int $offsetX
@param int $offsetY

@throws \Codeception\Exception\ElementNotFound
Performs contextual click with the right mouse button on an element . If the first parameter null then the offset is relative to the actual mouse position . 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 .