t.getCurrentCDPSession Method

Important

This method is exclusive to Native Automation mode. Each open browser window establishes a separate, independent CDP session.

The t.getCurrentCDPSession method returns a Chrome DevTools Protocol object that allows you to examine and control the current automation session. It cannot be chained with other TestController methods.

If you use the TestCafe proxy, the return value is undefined.