atul_acrolinx
4 years agoOccasional Contributor
TestComplete How to exit immediately if object not found, rather than waiting for autowait to finish
Hi I am using Testcomplete for testing one desktop application..
In that I am searching for some window object on screen, (basically its an error window) - so requirement is - if that error window does not appear then continue.
function verifyBrowserScriptErrorWindowAppears()
{
// Verifying an unexpected script error window is appearing before operation and if yes then closing it.
if(Aliases.xmetal.BrowserScriptErrorWindow.Exists)
{
Log.Message("Browser Script error window appeared.. Closing it..");
Aliases.xmetal.BrowserScriptErrorWindow.Close();
}
}
but everytime i call this method it keeps on searching window for 10 seconds (its detault search time of TC to search object) and then moves ahead.
SO my query is - How can i exit immediately if object is not there on screen, rather than waiting for that default time of object search.