Forum Discussion
NisHera
12 years agoValued Contributor
Hi,
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
}
}
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
}
}