1

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 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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.
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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.