Forum Discussion

bobo2001's avatar
bobo2001
New Contributor
11 years ago

Response time of Javascript

Hi Everybody,

I'm starting to use Loadui. And I'm running into a problem.
Our new website is using javascript elements, like drawing a table, or creating the input boxes.

So if you click on a particular website, website is shown but it takes up to 10 sec until
javascript finished his work and shows the complete content of the website.(boxes etc.)

So my problem is, that I can test the responsetime of the website, but I don't know if the website
would be completed displayed.

Is it posible with Loadui to wait until a an javascript element (e.g. Submit button) on the
website exist, so that I can count the elapsed time from starting the request until
the website is completly loaded?


Thanks for your help

Best regards

1 Reply

  • This can be done with Groovy script + Selenium. Selenium is a free web-automation API that supports all the main browsers.
    Selenium allows you to wait for specific elements on the page to load, like so:
    wait.until( ExpectedConditions.visibilityOfElementLocated( By.id("my-button") ) )