Forum Discussion
Well,
I've tried it by myself because I was sure that error should not be raised and it works fine without erros:
Check if your "if" statement ask for property "exists" == false, cuz it's the only property created when object does't exists.
Hi,
My coworker and I tried to apply your suggestion but we still get errors when there is no window and errors when false (saveaswindow).
Screenshot is below;
Should we have done it differently? Do you have a solution suggestion?
Thank you.
- cagan3 years agoOccasional Contributor
Hi,
"saveaswindow" object is found if the Save As popup appeared. If object not found it will not do anyting actually and will just keep going test case.
- React3 years agoOccasional Contributor
So you taking error before your "if statment" take pleace and in my opinion it is working as it should.
FindEx needs to be done, on an object thats exists - for example whole screen like I did.
var page = Sys.Browser().Page('*')
cagan Change saveAsWindow declaration. It can be some parent object that you have assurance of it's existence and try again 🙂
Related Content
Recent Discussions
- 34 minutes agonandini_thota
- 24 hours agoGane195