Hello,
I've been automating tests for a specific website for some time now. Today I've added and updated some of my previous tests in order for them to work in a future release of the website. When doing this I stumbled across a rather peculiar problem: my newly added test steps do not seem to always wait for the browser to be ready.
This is quite unpleasant, as the website is designed to return warnings / alert boxes every single time the user tries to initiate an action while the website is still loading / working on the previous "user request" so to speak. This means I have to add in a lot of extra alert dialog handlers.
I've never had similar problems before in my ~11 months of experience developing tests for this particular website. To add to the mystery:
- The tests that I've been modifying are spread out through multiple visual studio solutions. The odd behaviour is only being displayed in 1 out of 8 solutions, the others are still fine.
- There's nothing special about the added steps. Ajax is set to 0, WaitOnElements for each step is true, SimulateRealClick is set to false.
- It seems to be consistent behaviour, meaning that it always goes wrong at the same steps.
- All the steps that were recorded prior to today still work fine.
- Removing / re-recording the steps doesn't fix the issue.
- I did specifically raise the 'Wait on elements timeout' at the 'Quick execution options' from 10000 to 30000. Changing it back didn't have an effect on the behaviour, so this likely isn't the cause of the problem.
- I tried going back to IE9 (worked with IE10 before). This didn't fix it either.
Installed version: 2012.2.1204.0
I'm about to just revert my test back to the way it was and start all over. I'm hoping there's something I might have missed. Hope you can help me out!
Kind regards,
Arnout
I've been automating tests for a specific website for some time now. Today I've added and updated some of my previous tests in order for them to work in a future release of the website. When doing this I stumbled across a rather peculiar problem: my newly added test steps do not seem to always wait for the browser to be ready.
This is quite unpleasant, as the website is designed to return warnings / alert boxes every single time the user tries to initiate an action while the website is still loading / working on the previous "user request" so to speak. This means I have to add in a lot of extra alert dialog handlers.
I've never had similar problems before in my ~11 months of experience developing tests for this particular website. To add to the mystery:
- The tests that I've been modifying are spread out through multiple visual studio solutions. The odd behaviour is only being displayed in 1 out of 8 solutions, the others are still fine.
- There's nothing special about the added steps. Ajax is set to 0, WaitOnElements for each step is true, SimulateRealClick is set to false.
- It seems to be consistent behaviour, meaning that it always goes wrong at the same steps.
- All the steps that were recorded prior to today still work fine.
- Removing / re-recording the steps doesn't fix the issue.
- I did specifically raise the 'Wait on elements timeout' at the 'Quick execution options' from 10000 to 30000. Changing it back didn't have an effect on the behaviour, so this likely isn't the cause of the problem.
- I tried going back to IE9 (worked with IE10 before). This didn't fix it either.
Installed version: 2012.2.1204.0
I'm about to just revert my test back to the way it was and start all over. I'm hoping there's something I might have missed. Hope you can help me out!
Kind regards,
Arnout