Forum Discussion
jsc
12 years agoRegular Contributor
Hi Tanya,
i tried different ways, but neither was satisfying.
The best until now was like this:
var DBFieldExists = false;
var i = 1000;
while ((DBFieldExists == false) && (i>0))
{
if (Aliases.FContainerFormLogin.TWCAxSession.PanelBody.cbDatabaseInstance.Exists == true)
DBFieldExists = true;
i--;
delay(500, "waiting until database field exists...");
}
When I run this with TestExecute I get an error posted to the log for every loop if "Aliases.FContainerFormLogin.TWCAxSession.PanelBody.cbDatabaseInstance.Exists == true" fails!
I think it is wrong to write an error to the log when I am checking if the object exists and it does not exist.
What can I do?
Joachim
i tried different ways, but neither was satisfying.
The best until now was like this:
var DBFieldExists = false;
var i = 1000;
while ((DBFieldExists == false) && (i>0))
{
if (Aliases.FContainerFormLogin.TWCAxSession.PanelBody.cbDatabaseInstance.Exists == true)
DBFieldExists = true;
i--;
delay(500, "waiting until database field exists...");
}
When I run this with TestExecute I get an error posted to the log for every loop if "Aliases.FContainerFormLogin.TWCAxSession.PanelBody.cbDatabaseInstance.Exists == true" fails!
I think it is wrong to write an error to the log when I am checking if the object exists and it does not exist.
What can I do?
Joachim
Related Content
- 5 years ago
- 11 years ago