diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index 57d4859..3bb7dc4 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -3149,22 +3149,22 @@ protected function matchFirstOrFail(WebDriverSearchContext $page, $selector): We /** * Presses the given key on the given element. - * To specify a character and modifier (e.g. Ctrl, Alt, Shift, Meta), pass an array for `$char` with + * To specify a character and modifier (e.g. Ctrl, Alt, Shift, Meta), pass an array for `$char` with * the modifier as the first element and the character as the second. - * For special keys, use the constants from [`Facebook\WebDriver\WebDriverKeys`](https://github.com/php-webdriver/php-webdriver/blob/main/lib/WebDriverKeys.php). + * For special keys, use the constants from [Facebook\WebDriver\WebDriverKeys](https://github.com/php-webdriver/php-webdriver/blob/main/lib/WebDriverKeys.php). * * ``` php * * $I->pressKey('#page', 'a'); // => olda - * $I->pressKey('#page', ['ctrl', 'a'],'new'); //=> new - * $I->pressKey('#page', ['shift', '111'],'1','x'); //=> old!!!1x - * $I->pressKey('descendant-or-self::*[@id='page']','u'); //=> oldu - * $I->pressKey('#name', ['ctrl', 'a'], \Facebook\WebDriver\WebDriverKeys::DELETE); //=>'' + * $I->pressKey('#page', ['ctrl', 'a'],'new'); // => new + * $I->pressKey('#page', ['shift', '111'], '1', 'x'); // => old!!!1x + * $I->pressKey('descendant-or-self::*[@id='page']', 'u'); // => oldu + * $I->pressKey('#name', ['ctrl', 'a'], \Facebook\WebDriver\WebDriverKeys::DELETE); // =>'' * ``` * * @param string|array|WebDriverBy $element - * @param array$chars Can be char or array with modifier. You can provide several chars. + * @param string|array $chars Can be char or array with modifier. You can provide several chars. * @throws ElementNotFound */ public function pressKey($element, ...$chars): void