How can I make the difference between a timeout and an instant error while waiting for a web page?
Posted: Mon Apr 06, 2020 9:29 am
Hi,
My problem looks simple but I don't know how to deal with it in a simple way.
When I click on any link or button in my web application that leads me on another page,
I do a "Wait for" and expect the target page to load before the timeout.
Like:
Wait for pageurl = $targeturl
Wait for exists (a control on the target page)
When the Wait for fails it can be that:
- the target page failed to load before the "wait for" timeout: the target page is still loading
- the target page failed to load before its timeout: I get an error page like "The service is unavailable. Please contact the helpdesk"
- the target page IMMEDIATELY fails to load: I get the same error page like "The service is unavailable. Please contact the helpdesk"
Our dev team is asking me to be able to report whether the page failed to load immediately or only after a timeout,
KNOWING that at the expiration of the wait for delay, the error page displayed might be the same.
Any idea ?
Thanks in advance,
Yves
My problem looks simple but I don't know how to deal with it in a simple way.
When I click on any link or button in my web application that leads me on another page,
I do a "Wait for" and expect the target page to load before the timeout.
Like:
Wait for pageurl = $targeturl
Wait for exists (a control on the target page)
When the Wait for fails it can be that:
- the target page failed to load before the "wait for" timeout: the target page is still loading
- the target page failed to load before its timeout: I get an error page like "The service is unavailable. Please contact the helpdesk"
- the target page IMMEDIATELY fails to load: I get the same error page like "The service is unavailable. Please contact the helpdesk"
Our dev team is asking me to be able to report whether the page failed to load immediately or only after a timeout,
KNOWING that at the expiration of the wait for delay, the error page displayed might be the same.
Any idea ?
Thanks in advance,
Yves