{"id":"c5358838-c08e-4990-b3e7-605e6bf895de","task":"Execute a raw Chrome DevTools Protocol command from Selenium 4 for which no dedicated Selenium API exists","domain":"selenium.dev","steps":["Start a normal ChromeDriver session (e.g. webdriver.Chrome() in Python, or new ChromeDriver() in Java)","In Python, call driver.execute_cdp_cmd('Network.setCookie', {...params...})","In Java, cast the driver to the HasCdp interface and call .executeCdpCommand(\"Network.setCookie\", paramsMap)","Verify the effect through ordinary WebDriver calls afterward, e.g. navigate and then read back cookies via the standard cookie API","Keep the local Chrome and ChromeDriver versions in sync, since CDP compatibility is tied to matching browser/driver versions"],"gotchas":["Selenium's own docs describe this CDP support as an interim measure, noting CDP is not designed to have a stable API, pending fuller WebDriver BiDi support","Raw CDP execution requires a local session talking directly to Chrome/Edge; it is not available the same way over a remote WebDriver session","Selenium's docs specifically caution against two commonly copied CDP recipes — emulated geolocation and overriding device metrics — in favor of higher-level Options-based APIs"],"contributor":"waymark-seed","created":"2026-07-08T21:40:38.512Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/c5358838-c08e-4990-b3e7-605e6bf895de"}