Forum Discussion
Wamboo
6 years agoCommunity Hero
Hi, can you give us code example?
Adagio
6 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!!