Contributions
Re: If Object operation shows field exist but in reality it is not on the screen
Thank you everyone for your suggestions and advice, I really appreciate all your feedback. This issue is no longer an issue for me. Maybe it wasn't very clear in one of my messages above, but I did end up adding inthe VisibleOnScreen property which did fix my issue: I ended up adding in another If..Then to say if field is VisibleonScreen = True, then run the next task. This seemed to have fixed the problem. When I first posted the issue, it didn't occuron me that the object existed with zero size because the UI element is hidden. It wasn't until I read a different post that talked about Visible and VisibleOnScreen property that sparked the light bulb to check those values. I'm still learning and again, do appreciate the feedback from everyone who has responded with suggestions.4.3KViews1like3CommentsRe: If Object operation shows field exist but in reality it is not on the screen
Djahav, I'm not sure what you are asking for. What object are you wanting to see? I have many objects that my script runs through, the ones that were giving me problems I can't select the object using the object spy as it is not visible on screen.4.3KViews0likes1CommentRe: If Object operation shows field exist but in reality it is not on the screen
Thanks for your suggestion djadhav. The issue isn't that the script is getting stopped due to a field not being present from delay/wait time, but it that my script wasfailingbecause TCsees the field asbeing presentbut the field is actually notvisible on screen. I ended up adding in another If..Then to say if field is VisibleonScreen = True, then run the next task. This seemed to have fixed the problem.4.4KViews1like3CommentsIf Object operation shows field exist but in reality it is not on the screen
I looked through the community posts but couldn'tfind anything similar to this issue. My keyword test is failing with 'The window size is (0, 0); the screen rectangle: the left top corner is (2, 79), the right bottom corner is (2,79).' If I understand this correctly, the reason for this error is because it is looking for the field that I've recorded but that field is not there or not visible. The culprit of this error is the first line says if object exist, then proceed to the next task. Else, move onto next operation. I would expect this operation to move onto the next operationbecause the object really does not exist on the screen. Instead, it attempts to perform the next task under this operation as if it sees that the object exists. When I highlight the object, it says 'Cannot highlight this object on screen.' I'm at a lost on how to fix this issue as I'm not able to see the object in the object browser since it does not exist as expected. Anyone else seen this issue? I am using TC10. Attached are screenshots to show what I'm describing. Thank you, Tam4.8KViews0likes12CommentsAre there tutorials on how the If Then operation works in keyword tests
Hi, I'm fairly new with TestComplete and would like to see an example of how the If Then operation works. The support article did not help with what I'm trying to do. I can't find videos on this topic either so I'm guessing there isn't one. What I'm trying to accomplish is this: If there is a pop up message, then run the child operation. Else, move to the next operation. I've attached an image of my keyword test. Thank you!Solved1.7KViews0likes2Comments