Forum Discussion
mesg2anil
14 years agoRegular Contributor
Hi Ncoes,
I'm using below code to make the script wait till the page is loaded completely...
Set Page1 = Sys.Process("iexplore", 2).Page("http://" + ProjectSuite.Variables.ServerName + "/Default.asp")
Call Page1.Wait
but my concern is with page objects, once the page is loaded, I've drop down objects and links which will open popup windows. For example in case of drop-down objects, when I select a value from first drop-down, the second drop-down object will take few seconds to get the details related to first drop-down object value, in this process TC is failing as TC dosent find mentioned value in that second drop-down object. For this i'm currectly adding "Delay" so that the second drop-down object gets ready with details. For this if I use the above code "Call Page1.Wait"; it is not working as page is already loaded.
Like this, I have multiple drop-down objects on single page in the application, suggest me best way to make TC to wait for the object without wasting huge time and less scripting as well.
I'm using below code to make the script wait till the page is loaded completely...
Set Page1 = Sys.Process("iexplore", 2).Page("http://" + ProjectSuite.Variables.ServerName + "/Default.asp")
Call Page1.Wait
but my concern is with page objects, once the page is loaded, I've drop down objects and links which will open popup windows. For example in case of drop-down objects, when I select a value from first drop-down, the second drop-down object will take few seconds to get the details related to first drop-down object value, in this process TC is failing as TC dosent find mentioned value in that second drop-down object. For this i'm currectly adding "Delay" so that the second drop-down object gets ready with details. For this if I use the above code "Call Page1.Wait"; it is not working as page is already loaded.
Like this, I have multiple drop-down objects on single page in the application, suggest me best way to make TC to wait for the object without wasting huge time and less scripting as well.