public function keyDown($xpath, $char, $modifier = null) {
    $element = $this->findElement($xpath, 1);
    $key = $this->normalizeCharForKeyEvent($char);
    $modifier = $this->keyEventModifierControl($modifier);
    return $this->browser->keyEvent($element["page_id"], $element["ids"][0], "keydown", $key, $modifier);
  }
public function keyDown($xpath, $char, $modifier = null) {
    $element = $this->findElement($xpath, 1);
    $key = $this->normalizeCharForKeyEvent($char);
    $modifier = $this->keyEventModifierControl($modifier);
    return $this->browser->keyEvent($element["page_id"], $element["ids"][0], "keydown", $key, $modifier);
  }
public function keyDown ( $ xpath , $ char , $ modifier = null ) { $ element = $ this -> findElement ( $ xpath , 1 ) ; $ key = $ this -> normalizeCharForKeyEvent ( $ char ) ; $ modifier = $ this -> keyEventModifierControl ( $ modifier ) ; return $ this -> browser -> keyEvent ( $ element [ "page_id" ] , $ element [ "ids" ] [ 0 ] , "keydown" , $ key , $ modifier ) ; }
Send a key-down event to the browser element
@param        $xpath
@param        $char
@param string $modifier
@throws DriverException
Send a key - down event to the browser element