We have existing web test cases written in Java using selenium-chrome-driver. Now we want to check for browser memory leaks after those tests are performed.
Manually, I do it by using Chrome Dev Tools - memory tab. Take heap dump,before I start the test, perform tests and then again take heap dump. Compare those two heap dumps which gives heap delta.
I am not able to find selenium-chrome-dev-tools API using which I could start the Chrome Dev Tool memory profiler (and perhaps some other tools), run my WebDriver tests (instantiating a Chrome browser instance, manipulating DOM elements, etc.), and then stop the profiler, then inspect the profiler's results to see if there are any memory leaks.
Is this concept even feasible or am I way out to lunch? Why/why not?
On the other hand, I have came across https://github.com/samccone/drool using which, I could get this information, but issue with that is I will have to rewrite all my existing java selenium tests in javascript, unless there is I can integrate drool with existing selenium tests.
Please suggest.
Note: Similar question is already asked under Chrome Dev Tools API & Selenium WebDriver but I don't see much helpful answer yet, so re posting again with more details.