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.
Asked
Active
Viewed 1,520 times
1 Answers
2
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.
-
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. – user3702349 Jun 05 '14 at 14:16
-
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. – drez90 Jun 05 '14 at 14:22