I'm trying to eliminate fixed Execution Delays in a test and there has to be a better way.
The problem. We are entering clients into a page and the save only occurs when you navigate off the page or click on the link that brings you to the page that you are already on. In automation, after entering the client data, I am clicking on the link that brings you to the same page. However, when I click on this link, there is a delay before the page loads. So, without an execution delay, the script often fails because it is going to the next step which is wait for an element to exist. The problem is that it existed before the page had time to refresh. I have entered a ActiveBrowser.WaitUntilReady and that didn't help. This isn't an ajax thing either. I also tried waiting until an element doesn't exist and waiting until it existed again which didn't seem to work either. Any suggestions?
Thanks,
Jonathan
The problem. We are entering clients into a page and the save only occurs when you navigate off the page or click on the link that brings you to the page that you are already on. In automation, after entering the client data, I am clicking on the link that brings you to the same page. However, when I click on this link, there is a delay before the page loads. So, without an execution delay, the script often fails because it is going to the next step which is wait for an element to exist. The problem is that it existed before the page had time to refresh. I have entered a ActiveBrowser.WaitUntilReady and that didn't help. This isn't an ajax thing either. I also tried waiting until an element doesn't exist and waiting until it existed again which didn't seem to work either. Any suggestions?
Thanks,
Jonathan