Send commands to Chrome DevTools Protocol (CDP) from Cypress #26221
-
Is it possible to send commands to the CDP from within Cypress? We're having issues where some of our tests fail if Cypress isn't focused, or if it is run in headless mode. This seems to be to do with some focus emulation behaviour that isn't quite right. I suspect that if I can set This seems to be related to: #21673 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It appears it is possible by using |
Beta Was this translation helpful? Give feedback.
It appears it is possible by using
Cypress.automation('remote:debugger:protocol', { command, params })
percdp_automation.ts
.Cypress.automation
is reserved for internal usage according to documentation.