MouseEventFailed.php in Zircon Profile 8
File
vendor/jcalderonzumba/gastonjs/src/Exception/MouseEventFailed.php
View source
<?php
namespace Zumba\GastonJS\Exception;
class MouseEventFailed extends NodeError {
public function getName() {
return $this->response["args"][0];
}
public function getSelector() {
return $this->response["args"][1];
}
public function getPosition() {
$position = array();
$position[0] = $this->response["args"][1]['x'];
$position[1] = $this->response["args"][2]['y'];
return $position;
}
public function message() {
$name = $this
->getName();
$position = implode(",", $this
->getPosition());
return "Firing a {$name} at co-ordinates [{$position}] failed. Poltergeist detected\n another element with CSS selector '#{selector}' at this position.\n It may be overlapping the element you are trying to interact with.\n If you don't care about overlapping elements, try using node.trigger('{$name}').";
}
}