Forum Discussion
Hi,
First of all, what kind of object you are passing to the function? Please show, how you do it.
Anyway, if the object was not found at the moment of calling function, it would be a STUB object (not NULL). And this object will not changed within your function.
- meenakshiyadav16 years agoContributor
object may be of any type , combox, button, window etc
var OpenDefaultBox= vizbybis.mainview.exploresearch.containingbox.opendefaultcombobox
sync(OpenDefaultBox);
OpenDefaultBox.Click();- baxatob6 years agoCommunity Hero
As I said, if the object above is not presented in the system at the moment, when OpenDefaultBox variable was assigned, your function will not work.
Please read the topics about common tasks in object searching and waiting: https://support.smartbear.com/testcomplete/docs/app-objects/common-tasks/index.html
Probably you can use WaitAliasChild() method in your case.
- meenakshiyadav16 years agoContributor
WaitAliasChild is also not working .
JScript runtime error. Object doesn't support this property or method
JScript runtime error.This is how I am using it:var OpenDefaultBox= vizbybis.mainview.exploresearch.containingbox.opendefaultcombobox
if(vizbybis.WaitAliasChild(OpenDefaultBox, 10000).Exists)
{
OpenDefaultBox.Click();
}
else
Log.Message(OpenDefaultBox+" object not found")
Related Content
- 4 years agoJovanaS
Recent Discussions
- 2 hours agoSubhraDas
- 8 hours agoJacobjacob44