Micro Focus QTP (UFT) Forums
Dynamic descriptive Programming issue in Terminal Emulator - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Dynamic descriptive Programming issue in Terminal Emulator (/Thread-Dynamic-descriptive-Programming-issue-in-Terminal-Emulator)



Dynamic descriptive Programming issue in Terminal Emulator - cprasad - 04-25-2019

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


RE: Dynamic descriptive Programming issue in Terminal Emulator - Ankur - 04-25-2019

You aren't utilizing objTest object anywhere.