public function element_flick($element, $xoffset, $yoffset, $speed, $curl_opts = array()) { $this->actions[] = "return \$this->session->touch()->flick(array('element' => '" . $element->getID() . "', 'xoffset' => " . $xoffset . ", 'yoffset' => " . $yoffset . ", 'speed' => " . $speed . "), " . unwind_associated_array($curl_opts) . ");"; return $this; }
public function sendKeys($keysToSend, $curl_opts = array()) { $this->actions[] = '$this->session->keys(array("value" => ' . unwind_array(str_split($keysToSend)) . '), ' . unwind_associated_array($curl_opts) . ');'; return $this; }