If object exist execute, if not continue
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If object exist execute, if not continue
Hello! I am probably overthinking it but I am sure this has worked before so it confuses me now.
I am trying to execute a keyword test IF the object exist. If it does not exist it should continue with the else. Is this the wrong way to use it?
Solved! Go to Solution.
- Labels:
-
Keyword Tests
-
Web Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does it not work now? What does the log say?
To me it looks like this should work, maybe the object exists but is not visible?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know right but it gives no error message that is understandable. (image)
The error occures at the first if object.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmm strange, I had a broken If Object before aswell, I replaced it with a new one that does exactly the same and it worked, You could try this maybe.
Otherwise someone else might have a fix or Smart-bear support can help.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the Object Spy tool, verify the Exists property of Aliases.ComTestRibbonMenu.HwndS...
What is it showing?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yep re-creating the if object seemed to solved it somehow. Strange how that occures, thank you!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No problem!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Might be worth raising a ticket for this, as you don't want to be re-creating the steps if you have hundreds to update. It could be a genuine bug.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@rraghvani This only happend once for me though, might just be a once in while kind of issue
