Forum Discussion
Hi, can you give us code example?
- Adagio4 years agoFrequent Contributor
Hi @wam,
It just a conditional statement after the wait statement. The problem is, max wait is 20 seconds, and it's not able to identify the object on the UI (20 seconds later even when the object appears on the page within 5 seconds). Even though the Alias mapping hasn't changed.
progLib.waitForVisibility(buttonClx);
if(buttonClx.Exists){
buttonClx.ClickButton();}
Thank you!!
- tristaanogre4 years agoEsteemed Contributor
Hi (been a while...but here I am).
waitForVisibility appears to be custom code. So, it's hard to say what's going on here without knowing what's happening in the other code. You mention a "max wait" of 20 seconds, I'm assuming that's in that same waitForVisibility. What happens after 20 seconds and it's still not visible?Additionally, it would be nice to see some more information about the object. You say that the mapping hasn't changed... but has the application under test changed? It could be visible, to you, on screen but the automation may not be able to find it due to some other factors.
To help more:
1) Can we see the code for waitForVisibility? Please post it.
2) Can you post a screenshot of the Object Browser of the object in question so we can see the full properties and hierarchy in the object tree?
3) Can you post a screenshot of the mapping criteria you're using for the object? Please make sure to include the NameMapping hierachy tree (as opposed to the Alias tree) for the object in question so we can see the relationship to other objects.
- AlexKaras4 years agoChampion Level 3
Hi,
In addition to Robert's reply:
If the buttonClx is recreated in-between it was initially found and .Exists verification, than this is correct behavior of TestComplete just because the initial object was destroyed and thus does not exist.
If the above is your case than you must search for the buttonClx button again after it was recreated.
Related Content
- 11 months agoIrinaManea
- 10 months agoAnabelle
- 13 years agomrouse
- 6 years ago4m4d3u5
Recent Discussions
- 16 hours agotramuntana
- 3 days agoSlickRick