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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the two comments. I am implementing them now.
//this when you want to set time specific time for each click
window.setTimeout("autoCli
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