Forum Discussion

amathews's avatar
amathews
Occasional Contributor
14 years ago

Script error "Unable to find object" on object that is defined but not used.

In TestComplete programming with Jscript, I'm trying to create an "object repository" script with page elements defined as variables, but when I do that and run a different script in the same project the script will "wait" for the all the defined objects, even though I haven't used them yet.  Why is it doing this and how do I make it stop?

Example:

function test()

{

Log.Message("okay");

}

var participantEdit_participantUrl = Sys.Process("iexplore").Page("*").Panel("container").Panel("pageCell").Panel("pageContent").Panel("content").Form("ParticipantSaveForm").Fieldset(1).Panel(5).Textbox("participantUrl");



I run test() but the script starts "Waiting for Panel("container")" and throws an error after the timeout.