muthulakshmi
6 years agoOccasional Contributor
Can we capture Page Weight (in KB) on every page load in TestComplete
Can we capture Page Weight (in KB) on every page load in TestComplete, similar to BrowserMobProxy in Selenium or YSlow add on. Basically need to access the Network information to get the page weight ...
- 6 years ago
Hi,
I've never done this before, but you can run JS scripts like this by running Web tests in TestComplete:
https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/javascript.html
It may be worth trying to run a script that runs on the window object. Like this one:
window.performance
More info on stack:
https://stackoverflow.com/questions/14341156/calculating-page-load-time-in-javascript