08-13-2009, 06:59 PM
I would love it if I could do that but the title is so complex that for whatever reason QTP cannot recognize it(or maybe there is another reason for that). The Main Window of my app is identified through regexpwndtitle =
"Application 1 Core v4.0 [ 3.022.013C ]. Logged in as 'USER1' QA ENV"
There are 3 different places in that name that are variable.
Even using regular expressions to do the following is not recognized.
"Application 1 Core v4\.0 \[ 3\.022\.013C \]\. Logged in as 'USER1' QA *"
Since this is the main window in which all other objects reside in using Descriptive programming is unrealistic. I resolved the problem by getting the object name using the WIN API Function FindWindow to get the current name and then SetTOProperty to name it correctly. That seems to work without problem. Thanks,
.......
"Application 1 Core v4.0 [ 3.022.013C ]. Logged in as 'USER1' QA ENV"
There are 3 different places in that name that are variable.
Even using regular expressions to do the following is not recognized.
"Application 1 Core v4\.0 \[ 3\.022\.013C \]\. Logged in as 'USER1' QA *"
Since this is the main window in which all other objects reside in using Descriptive programming is unrealistic. I resolved the problem by getting the object name using the WIN API Function FindWindow to get the current name and then SetTOProperty to name it correctly. That seems to work without problem. Thanks,
.......