Protractor not connected to DevTools Protractor not connected to DevTools google-chrome google-chrome

Protractor not connected to DevTools


You can't because webdriver uses the developer tools to communicate with chrome. If the dev tools window is open then your can't execute any protractor code.

https://sites.google.com/a/chromium.org/chromedriver/help/devtools-window-keeps-closing

I would advice you to duplicate the tab or pause your test either with browser.sleep(ms) or browser.debugger()


There is a new pause function that can be used to open the dev tools and e.g. taking a heap snapshot. It pauses the test execution until you continue the execution from the command window.

More details here:

To use it, simply add the following to your test code:

browser.pause();

Once you're ready to continue the test, type in d followed by Enter in the paused command window/terminal.