>> Does the window change when you get data?
>> Is the window DIFFERENT that if you have the site down?
the window does not change when getting data. If the site is down, then I will get a 500 and an immediate response. But the site is not down, it is just not responding so it just waits for it to load. What I would like to do is restart the server in this case which I am able to do in the case when site is down.
The page is a simple success page, which displays "....<p>success</p>....". I extract the data and check if it is success or not when the page displays. So there is intermediate popups or anything.
>> Can you make a spinloop to wait for the window and then if it exceeds some time limit, ask the user if they want to proceed?
This is an automated setup (unattended) and it does a loop to check if the site is down or not and works in the following 2 cases:
i) Down and displays error page immediately
ii) Site is up and running and displays success
iii) the 3rd case is when it does not display any error page and neither it displays success but just waits for a long time.
What is a spin loop ?
>> If it is "unattended" what do you WANT to happen when the site is down?
In the 3rd case as mentioned earlier, I want it to try for 15 seconds or 10 seconds and fail. The process will then do 3 tries with a gap of 1 minute and then restart the server.
Thanks
Simon |