<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: What's the best way to deal with the application not being ready (Thread)</title><description>I have noticed that some of my tests failed b/c of the time it took for some pages to load. The recording is fine, but I am getting "TypeError(-2146827850): Object doesn't support this property or method" when I play the script.  Any adivice on how to handle this? </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/rapise/best-practices/189.aspx</link><item><guid isPermaLink="false">threadId=189</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>What's the best way to deal with the application not being ready</title><description>I have noticed that some of my tests failed b/c of the time it took for some pages to load. The recording is fine, but I am getting "TypeError(-2146827850): Object doesn't support this property or method" when I play the script.  Any adivice on how to handle this? </description><pubDate>Tue, 25 Oct 2011 14:37:49 -0400</pubDate><a10:updated>2011-10-26T15:27:00-04:00</a10:updated><link>/Support/Forum/rapise/best-practices/189.aspx</link></item><item><guid isPermaLink="false">messageId=352</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> It is recommended to fine-tune the synchronization using one of the 2 available methods:   1. Globa</title><description> It is recommended to fine-tune the synchronization using one of the 2 available methods:   1. Global.DoSleep(1000);   Waits for 1 second. In many cases it is enough   2. Global.DoWaitFor('MyObjectId', 10000);   - Wait for given object up to 10 seconds. If object is found earlier then method unblocks.  </description><pubDate>Tue, 25 Oct 2011 14:38:28 -0400</pubDate><a10:updated>2011-10-25T14:38:28-04:00</a10:updated><link>/Support/Forum/rapise/best-practices/189.aspx#reply352</link></item><item><guid isPermaLink="false">messageId=355</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Also you can use the following function (that you can add to your script file):        /** * Waits </title><description> Also you can use the following function (that you can add to your script file):        /** * Waits for specified value of object's property. Function returns object handle * if object was found and specified property equals to desired value or 'false'  * in case of timeout. * @param obj ID of object to wait for or object itself. * @param getterName Property getter function name. * @param propValue Desired value. * @param [timeout = 10000] Maximum time to wait. * @param [params] Parameters for property getter function. * @returns Found object or 'false'. */   function  DoWaitForProperty (  /**String|SeSObject*/ obj ,   /**String*/ getterName ,   /**String|Number|Boolean*/  propValue ,   /**Number*/ timeout ,   /**Array|String|Number|Boolean*/ params )   /**SeSObject|false*/   {  timeout  =  timeout ||  10000  ;  params  =  params ||  [  ]  ;    if   (  typeof  ( params )   !=   "object"  )  params  =   [ params ]  ;    var  start_  =   new  Date ;    var  waitInt  =   0  ;   do   {   var  res  =   null  ;   if   (  typeof  ( obj )   ==   "object"  )  res  =  obj ;   else  res  =  SeSFindObj ( obj )  ;    if  ( res )   {   var  prop  =  res [ getterName ]  ;   if   ( prop  &amp;&amp;   typeof  ( prop )   ==   "function"  )   {   var  value  =  prop. apply  ( res ,  params )  ;   if   ( value  ===  propValue )   {   return  res ;   }   }   }  SeSSleep (  100  )  ;   }   while  (  (  new  Date  -  start_ )  &lt; timeout )  ;   return   false  ;   }         You can use this new function using:           // Wait for timer to finish     DoWaitForProperty (  'OnlineTimerTime'  ,   'InnerText'  ,   "00:00:00"  ,   10000  )  ;      </description><pubDate>Wed, 26 Oct 2011 15:26:59 -0400</pubDate><a10:updated>2011-10-26T15:26:59-04:00</a10:updated><link>/Support/Forum/rapise/best-practices/189.aspx#reply355</link></item></channel></rss>