I have a UI on which some pages are taking a time to load. I need to calculate the time for the page to load. How this can be achieved.
1 Answer
You could use the unitteset module. Here is a simple example that may achieve what you want. You would probably have to write a test for each page to times specific to the page.
Another option is to use the time module and wrap around the call you'd like to time. This answer explains how to do that.
2 Comments
user3702349
Thanks, let me rephrase my query.I have a test case in which I have to open a UI and from this when I clicked on some drop down then another page is opened now I have to calculate time that is taken to open for this UI.
drez90
I don't think selenium has any built in feature for this, so the second part of my answer would probably be your best bet.