06-18-2009, 01:18 AM
Hi All...
Iam new to QTP and this is my first recorded code .
After recording and modifying the code little bit .I modified the code littlebit bcas the window names changes for every run.
Please help me...thx
Satya
The Actual Recorded Code is :
the Modified code is
The Error iam getting is:::::::::::>
The "Menu" object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.
Line (49):
Iam new to QTP and this is my first recorded code .
After recording and modifying the code little bit .I modified the code littlebit bcas the window names changes for every run.
Please help me...thx
Satya
The Actual Recorded Code is :
Code:
Window("SLIM - [Study '10-P-746' Event Log]").WinMenu("Menu").Select "File;Print... Ctrl+P"
the Modified code is
Code:
Var = Window("ForeGround:=True").GetROProperty("regexpwndtitle")
Set oWindow = Description.Create()
oWindow("regexpwndtitle").Value =Var
msgbox Var
Window("regexpwndtitle:="& Var).WinMenu("Menu").Select "File;Print... Ctrl+P"
The Error iam getting is:::::::::::>
The "Menu" object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.
Line (49):
Code:
"Window("regexpwndtitle:="& Var).WinMenu("Menu").Select "File;Print... Ctrl+P"".