Lines Matching refs:where
40 * @param null|WebDriverCoordinates $where
44 public function click(WebDriverCoordinates $where = null)
47 $moveAction = $where ? [$this->createMoveAction($where)] : [];
62 $this->moveIfNeeded($where);
71 * @param WebDriverCoordinates $where
75 public function contextClick(WebDriverCoordinates $where = null)
78 $moveAction = $where ? [$this->createMoveAction($where)] : [];
102 $this->moveIfNeeded($where);
111 * @param WebDriverCoordinates $where
115 public function doubleClick(WebDriverCoordinates $where = null)
119 $moveAction = $where === null ? [] : [$this->createMoveAction($where)];
134 $this->moveIfNeeded($where);
141 * @param WebDriverCoordinates $where
145 public function mouseDown(WebDriverCoordinates $where = null)
155 $this->createMoveAction($where),
168 $this->moveIfNeeded($where);
175 * @param WebDriverCoordinates $where
182 WebDriverCoordinates $where = null,
193 'actions' => [$this->createMoveAction($where, $x_offset, $y_offset)],
202 if ($where !== null) {
203 $params['element'] = $where->getAuxiliary();
218 * @param WebDriverCoordinates $where
222 public function mouseUp(WebDriverCoordinates $where = null)
225 $moveAction = $where ? [$this->createMoveAction($where)] : [];
246 $this->moveIfNeeded($where);
253 * @param WebDriverCoordinates $where
255 protected function moveIfNeeded(WebDriverCoordinates $where = null)
257 if ($where) {
258 $this->mouseMove($where);
263 * @param WebDriverCoordinates $where
270 WebDriverCoordinates $where = null,
281 if ($where !== null) {
282 $move_action['origin'] = [JsonWireCompat::WEB_DRIVER_ELEMENT_IDENTIFIER => $where->getAuxiliary()];