Micro Focus QTP (UFT) Forums

Full Version: Dynamic descriptive Programming issue in Terminal Emulator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dynamic descriptive programming unable to identify object where as static Descriptive programme able to identify the same with same properties


Code:
Set objTest=description.create
                    objTest("attached text").value=".*"
                    objTest("length").value="10"
      set arrChilds=TeWindow("short name:=^[A-Z]").TeScreen("label:=.*").ChildObjects()
      msgbox arrChilds.Count   'returning 0 for COUNT

where as 

Code:
 TeWindow("short name:=^[A-Z]").TeScreen("label:=.*").TeField("attached text:=.*","length:=10").exists 

returning TRUE.

Please suggest
You aren't utilizing objTest object anywhere.