public function KeyboardTrait::keyPress in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/jcalderonzumba/mink-phantomjs-driver/src/KeyboardTrait.php \Zumba\Mink\Driver\KeyboardTrait::keyPress()
Parameters
string $xpath:
string $char:
string $modifier:
Throws
File
- vendor/
jcalderonzumba/ mink-phantomjs-driver/ src/ KeyboardTrait.php, line 72
Class
- KeyboardTrait
- Class KeyboardTrait @package Zumba\Mink\Driver
Namespace
Zumba\Mink\DriverCode
public function keyPress($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], "keypress", $key, $modifier);
}