/** * Handles the key up of a keyboard modifier * * @param string $modifier The modifier to handle (see self::MODIFIER_*) */ protected function keyUpModifier($modifier) { switch ($modifier) { case self::MODIFIER_CTRL: throw new UnsupportedDriverActionException('Ctrl key is not supported by %s', $this); case self::MODIFIER_ALT: $this->browser->altKeyUp(); break; case self::MODIFIER_SHIFT: $this->browser->shiftKeyUp(); break; case self::MODIFIER_META: $this->browser->metaKeyUp(); break; } }
/** * {@inheritdoc} */ public function submitForm($xpath) { $this->browser->submit(SeleniumLocator::xpath(utf8_decode($xpath))); }