11-16-2010, 10:07 PM
Hi,
Application Under Test (UAT) requires a file to be attached. When recording in QTP, the file selection from the Dialog Window is recorded and learned as a WinListView object. However, at run time, this object could not be found by QTP.
Please take a look at it and pass your suggestion on how to work on it.
Please see the attachment.
Thanks
-murali
Application Under Test (UAT) requires a file to be attached. When recording in QTP, the file selection from the Dialog Window is recorded and learned as a WinListView object. However, at run time, this object could not be found by QTP.
Please take a look at it and pass your suggestion on how to work on it.
Code:
Browser("Chronicle Careers").Page("The Chronicle Of Higher").WebRadioGroup("adType").Select "CR"
Browser("Chronicle Careers").Page("The Chronicle Of Higher").Frame("Frame_7").WebFile("uploadfile").Click
Browser("Chronicle Careers").Dialog("Choose File to Upload").WinListView("SysListView32").Select "PDF_file1"
Browser("Chronicle Careers").Dialog("Choose File to Upload").WinButton("Open").Click
Browser("Chronicle Careers").Page("The Chronicle Of Higher").Frame("Frame_7").Image("uploadfile_on").Click
Please see the attachment.
Thanks
-murali