Home / Companies / New Relic / Blog / Post Details
Content Deep Dive

Setting cookies in synthetic monitors using CDP

Blog post from New Relic

Post Details
Company
Date Published
Author
Steve Cunnew, Technical Success Manager
Word Count
1,264
Language
English
Hacker News Points
-
Summary

The Selenium web driver provides a way to set cookies for scripted browser monitors using the `$webDriver.manage()` function and its `addCookie()` method, which can simplify the process of bypassing cookie modals and multi-factor authentication. The Chrome DevTools Protocol (CDP) also offers a way to set cookies without accessing the UI, allowing for more control over the browser's behavior. By utilizing CDP and its methods, developers can create more efficient and effective scripted browser monitors.