This sample app uses Selenium and Edge Driver to call CDP directly and get the number of detached elements in a webpage.
Have Edge Driver available in PATH. Or you can download the Canary version from the official site, extract the contents and copy the executable to the root of this folder.
https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
npm install
npm start
https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/?tabs=javascript
