Micro Focus QTP (UFT) Forums
Window Name Change Every time - 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: Window Name Change Every time (/Thread-Window-Name-Change-Every-time)

Pages: 1 2


RE: Window Name Change Every time - sshukla12 - 03-27-2012

Hi,

Code:
Window("Desktop").Window("99919999 (locked)").Activate
ur window name depends upon the text u entered in line Window("Desktop").Window("New Document").Type "99919999"
Use Descriptive programing instead of adding object to OR. use the value u entered as the name for the window displayed using DP.
This will definitely help u out.

Regards,
Sankalp