Link to home
Start Free TrialLog in
Avatar of corebiz
corebiz

asked on

Perform automated click on page after load

I am designing a simply utility to test the network speed at a new client, comparing Asp.net pages with Visual WebGUI.

The test entails clicking a test button on a page after it has loaded and then measuring how many clicks can be achieved in certain time frame.  We've realised the limitations of carrying out this click manually, and would like to have the test running sporadically over two days so we can see the busy periods.

With my limited knowledge of javascript and asp, how can I get the client browser to automatically click the button once the page has loaded, so that I can automate the tests?

If you have any knowledge on how to achieve this Visual WebGUI as well, that would be very handy.
ASKER CERTIFIED SOLUTION
Avatar of crazyman
crazyman
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Added to crazyman comment:

//this when you want to set time specific time for each click
window.setTimeout("autoClick()", 200)  ;

if you want this button to be clicked as soon as the page is load, then you better do:
<body onLoad="autoClick();">

The autoClick function you can take it from crazyman comment

JINN
Avatar of corebiz
corebiz

ASKER

Thanks for the two comments.  I am implementing them now.