Forum Discussion

RajibPradhan's avatar
RajibPradhan
Occasional Contributor
13 years ago

Unable to execute a recorded script

Hi,

 I am facing problem to execute the following code:

  Set CIMDocPanel =  javaw.Device_Name.RootPane.null_layeredPane.CIMDocPanel

The "Device_Name" is the name of the device which will be created in earlier step. The above statement is a recorded by testComplete.



 When it is executing the above statement it is showing the following error:

Unable to find the object Device_Name.



Can I use a variable in place of "Device_Name" whose value will be taken from the configuration file?



Thanks,

Rajib