Skip to content

Commit 46e75f3

Browse files
committed
readme example [ci skip]
1 parent 0ebef6c commit 46e75f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ Once the page has completed the navigation you can evaluate arbitrary script on
199199
$value = $evaluation->getReturnValue();
200200
```
201201

202+
Sometime the script you evaluate will click a link or submit a form, in this case the page will reload and you
203+
will want to wait for the new page to reload.
204+
205+
You can achieve this by using ``$page->evaluate('some js that will reload the page')->waitForPageReload()``.
206+
An example is available in [form-submit.php](./examples/form-submit.php)
207+
208+
202209

203210
#### Make a screenshot
204211

0 commit comments

Comments
 (0)