@@ -190,24 +190,26 @@ Besides capybara screenshot method you can get image as Base64:
190
190
* ` page.driver.set_proxy(ip, port, user, password) `
191
191
192
192
193
- ## URL Blacklisting & Whitelisting
193
+ ## URL Block/Allowlisting
194
194
195
- Cuprite supports URL blacklisting , which allows you to prevent scripts from
195
+ Cuprite supports URL blocklisting , which allows you to prevent scripts from
196
196
running on designated domains:
197
197
198
198
``` ruby
199
- page.driver.browser.url_blacklist = %r{http://www.example.com}
199
+ page.driver.browser.url_blocklist = %r{http://www.example.com}
200
200
```
201
201
202
- and also URL whitelisting , which allows scripts to only run on designated
202
+ and also URL allowlisting , which allows scripts to only run on designated
203
203
domains:
204
204
205
205
``` ruby
206
- page.driver.browser.url_whitelist = %r{http://www.example.com}
206
+ page.driver.browser.url_allowlist = %r{http://www.example.com}
207
207
```
208
208
209
- If you are experiencing slower run times, consider creating a URL whitelist of
210
- domains that are essential or a blacklist of domains that are not essential,
209
+ For legacy support, ` url_blacklist= ` and ` url_whitelist= ` continue to work respextively
210
+
211
+ If you are experiencing slower run times, consider creating a URL allowlist of
212
+ domains that are essential or a blocklist of domains that are not essential,
211
213
such as ad networks or analytics, to your testing environment.
212
214
213
215
## License
0 commit comments