Skip to content

Commit 4d3a07f

Browse files
committed
Add wait_for_reload to README
1 parent 1f66a3d commit 4d3a07f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ Please note that network traffic is not cleared when you visit new page. You can
153153
manually clear the network traffic by calling `page.driver.clear_network_traffic`
154154
or `page.driver.reset`
155155

156+
* `page.driver.wait_for_reload` unlike `wait_for_network_idle` will wait until
157+
the whole page is reloaded or raise a timeout error. It's useful when you know
158+
that for example after clicking autocomplete suggestion you expect page to be
159+
reloaded, you have a few choices - put sleep or wait for network idle, but both
160+
are bad. Sleep makes you wait longer or less than needed, network idle can
161+
return earlier even before the whole page is started to reload. Here's the
162+
rescue.
163+
156164

157165
## Manipulating cookies
158166

0 commit comments

Comments
 (0)