trait BrowserMouseEventTrait in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserMouseEventTrait.php \Zumba\GastonJS\Browser\BrowserMouseEventTrait
Trait BrowserMouseEventTrait @package Zumba\GastonJS\Browser
Hierarchy
- trait \Zumba\GastonJS\Browser\BrowserMouseEventTrait
File
- vendor/
jcalderonzumba/ gastonjs/ src/ Browser/ BrowserMouseEventTrait.php, line 9
Namespace
Zumba\GastonJS\BrowserView source
trait BrowserMouseEventTrait {
/**
* Click on a given page and element
* @param $pageId
* @param $elementId
* @return mixed
*/
public function click($pageId, $elementId) {
return $this
->command('click', $pageId, $elementId);
}
/**
* Triggers a right click on a page an element
* @param $pageId
* @param $elementId
* @return mixed
*/
public function rightClick($pageId, $elementId) {
return $this
->command('right_click', $pageId, $elementId);
}
/**
* Triggers a double click in a given page and element
* @param $pageId
* @param $elementId
* @return mixed
*/
public function doubleClick($pageId, $elementId) {
return $this
->command('double_click', $pageId, $elementId);
}
/**
* Hovers over an element in a given page
* @param $pageId
* @param $elementId
* @return mixed
*/
public function hover($pageId, $elementId) {
return $this
->command('hover', $pageId, $elementId);
}
/**
* Click on given coordinates, THIS DOES NOT depend on the page, it just clicks on where we are right now
* @param $coordX
* @param $coordY
* @return mixed
*/
public function clickCoordinates($coordX, $coordY) {
return $this
->command('click_coordinates', $coordX, $coordY);
}
/**
* Scrolls the page by a given left and top coordinates
* @param $left
* @param $top
* @return mixed
*/
public function scrollTo($left, $top) {
return $this
->command('scroll_to', $left, $top);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BrowserMouseEventTrait:: |
public | function | Click on a given page and element | |
BrowserMouseEventTrait:: |
public | function | Click on given coordinates, THIS DOES NOT depend on the page, it just clicks on where we are right now | |
BrowserMouseEventTrait:: |
public | function | Triggers a double click in a given page and element | |
BrowserMouseEventTrait:: |
public | function | Hovers over an element in a given page | |
BrowserMouseEventTrait:: |
public | function | Triggers a right click on a page an element | |
BrowserMouseEventTrait:: |
public | function | Scrolls the page by a given left and top coordinates |