diff --git a/src/Codeception/Module/WebDriver.php b/src/Codeception/Module/WebDriver.php index 4ae01c4..fe6eab4 100644 --- a/src/Codeception/Module/WebDriver.php +++ b/src/Codeception/Module/WebDriver.php @@ -2279,7 +2279,9 @@ public function typeInPopup(string $keys): void } /** - * Reloads the current page. + * Reloads the current page, as if the user would click into the url bar and hit enter, + * i.e. form fields are cleared. If you want to reload and keep the contents of form fields + * (i.e. as if the user would press F%), use `$I->pressKey(['css' => 'body'], \Facebook\WebDriver\WebDriverKeys::F5);` */ public function reloadPage(): void {