File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,26 @@ be automatically cleared at the end of the test.
116
116
* ` page.driver.network_traffic ` Inspect network traffic (resources have been
117
117
loaded) on the current page. This returns an array of request objects.
118
118
119
-
120
119
``` ruby
121
120
page.driver.network_traffic # => [Request, ...]
122
121
request = page.driver.network_traffic.first
123
122
request.response
124
123
```
125
124
125
+ * ` page.driver.wait_for_network_idle ` Natively waits for network idle and if
126
+ there are no active connections returns or raises ` TimeoutError ` error. Accepts
127
+ the same options as Ferrum's [ ` wait_for_idle ` ] ( https://github.com/route/ferrum#wait_for_idleoptions )
128
+
129
+ ``` ruby
130
+ page.driver.wait_for_network_idle
131
+ page.driver.refresh
132
+ ```
133
+
126
134
Please note that network traffic is not cleared when you visit new page. You can
127
135
manually clear the network traffic by calling ` page.driver.clear_network_traffic `
128
136
or ` page.driver.reset `
129
137
138
+
130
139
### Manipulating cookies ###
131
140
132
141
The following methods are used to inspect and manipulate cookies:
189
198
190
199
## License ##
191
200
192
- Copyright 2018-2019 Machinio
201
+ Copyright 2018-2020 Machinio
193
202
194
203
Permission is hereby granted, free of charge, to any person obtaining
195
204
a copy of this software and associated documentation files (the
You can’t perform that action at this time.
0 commit comments