If condition pass, but not execute the code
I'm facing a problem on my GUI test. I want to check if a certain screen of a application is loaded or not, for this I'm using a bitmap checkpoint and a text area checkpoint. I'm using both because sometimes bitmap checkpoint is so sensible and fail for a little change is the image, so to I decide to use test area for this. Alright, so my problem is that:
I'm using a infinity loop with a counter timer. If the time pass than a X seconds, so exit the loop and report. If not check the checkpoints, if one pass exist the loop and report. When I run this script the code simple not exit the ininity loop, but if I go and see the Results View it tells me that the second checkpoint is passed! So, the condition on the If passed, but not execute the code? Why?
Another strange thing is that I used the same code in another action and works! The only difference is that another action I'm using more checkpoints. So I really not undestandiing what is happening. If you guys can explain for me.
Thanks and Regards.
Re: If condition pass, but not execute the code
Post your code so we have a better idea.
Oh, I attached a image of my code and the run view results
Thanks for help