![]() |
At run time, object could not be found by QTP (WinListView) - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: At run time, object could not be found by QTP (WinListView) (/Thread-At-run-time-object-could-not-be-found-by-QTP-WinListView) |
At run time, object could not be found by QTP (WinListView) - thotamurali - 11-16-2010 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. Code: Browser("Chronicle Careers").Page("The Chronicle Of Higher").WebRadioGroup("adType").Select "CR" Please see the attachment. Thanks -murali RE: At run time, object could not be found by QTP (WinListView) - KavitaPriyaCR - 11-17-2010 Hi Can you try once the selecting file option as: Code: Browser("Chronicle Careers").Page("The Chronicle Of Higher").WebRadioGroup("adType").Select "CR" RE: At run time, object could not be found by QTP (WinListView) - thotamurali - 11-17-2010 hi Kavita Thanks for looking into it. I am basically a Business Analyst. Recently, working as QA. Thanks for helping me. I have added the code which you provided and tried. Code: Browser("Chronicle Careers").Page("The Chronicle Of Higher").WebRadioGroup("adType").Select "CR" It selected the 1st radio button. Code: (WebRadioGroup("adType").Select "CR"). But it didn't open any window or it didn't load any file. It displays like this on my page. Please see the attachment. HI kavita, Please take a look at the screen shot. Thanks -murali RE: At run time, object could not be found by QTP (WinListView) - nandu - 11-18-2010 Hi Kavita.. Can u plz explain what the diff b/w 1 & 2 i am new to QTP.. 1) Code: Browser("Chronicle Careers").Page("The Chronicle Of Higher").Frame("Frame_7").WebFile("uploadfile").Click 2) Code: Browser("Chronicle Careers").Page("The Chronicle Of Higher").Frame("Frame_7").Window().Type "C:\Documents and Settings\mthota\My Documents\Murali\Office\Sprints\diff upload files\PDF_file1.pdf" what is Window().Type.. u r help would be appreciated.. Hi Murali, Code: Browser("Chronicle Careers").Page("The Chronicle Of Higher").Frame("Frame_7").WebFile("uploadfile").Click Thanks RE: At run time, object could not be found by QTP (WinListView) - KavitaPriyaCR - 11-18-2010 Hi Murali, I thought your application allows user to type the file name in the browse edit box, thats why i adviced you to type the path and file name, as i am doing in my application. Nandu, Difference between 2 is , In 1st option we are selecting the file from the location by clicking on Browse button. In 2nd one we can select the file just typing the file name,instead of using browse option. ------------------------------------------------------------------------------------------------- Hi again Murali, Include below line(1) in your script before accessing the window objects... 1. Code: Set goShell=CreateObject("WScript.Shell") Then try by replacing: Code: Browser("Chronicle Careers").Dialog("Choose File to Upload").WinListView("SysListView32").Select "PDF_file1" Code: Browser("Chronicle Careers").Dialog("Choose File to Upload").WinEdit("SysListView32").Set "PDF_file1" RE: At run time, object could not be found by QTP (WinListView) - thotamurali - 11-18-2010 Thanks Kavita and nandu for looking in to it. I am totally lost. I am very new to this QTP. My team asked me to work on some scenarios. So learning. I can send the website url, login and passwords. Can you please work on your machine and let me know how this can be fixed. I really appreciate your help. Please send me your personal email address, so that I can send the url, login and password. Thanks -murali RE: At run time, object could not be found by QTP (WinListView) - KavitaPriyaCR - 11-19-2010 Hi Murali, Why can't you take help of your colleagues, if the url, UID and PWD is confidential? RE: At run time, object could not be found by QTP (WinListView) - thotamurali - 11-19-2010 Hi kavita, it is not at all any confidential. I am the only one using QTP in my office. So no one knows about it. Anyone go to our site and create their own account. I created one account. I just want to give that info. But I am not sure to post any password/username on this site is a good practice. So I asked your email id. Please let me know. Thanks -murali |