`window.chrome.inspector.tests.open.profile()` needs to be changed to `isOpen()`.