Forum Discussion
- NisHeraValued ContributorHi,
To add to above, if you use button.Exists , will give you error when button is not there.
to avoid an error you can use waite property
eg
function abcd(){
if (....button.WaitProperty('Exists',true,300)&&......button.WaitProperty('visible',true,200) ) {
Log.Message('OK');
//and u r stuff
} else {
Log.Message('no button');
//u r next suff
}
} - altus_nelContributorHi there,
You can try something like:
//JScript
if(<button>.Exist && <button>.Visible){
//Click the button here
}
else {
//Do something here if the button is not there
}
Regards,
Altus