Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to open a file using open file dialog windows vista
#1
Solved: 10 Years, 10 Months ago
Hi Everybody,

I am trying to open a file using Open file dialog in my web application with QTP. QTP doesn't record the file selction from dialog box. I used object spy and it recognized it as Dialog box. In my object repository it is inserted as a child of borwser window from this dialog popus up.

Now I have used below code condition and its returning true

If Browser("ProjectCentre QTP: DropBox").Dialog("Choose file").Exist Then
MsgBox "The browser exists."
and it TRUE.

But when i try to use other methods of dialog object with below code it gives me a message saying object not visible as shown in attached screenshort


below code also not working
Code:
Browser("ProjectCentre QTP: DropBox").Dialog("Choose file").SetTOProperty "Visible", TRUE
  Browser("ProjectCentre QTP: DropBox").Dialog("Choose file").Click
Browser("ProjectCentre QTP: DropBox").Dialog("Choose file").Activate

Attached screenshort explains the story in more detail. Please suggest a wayout


Attached Files Image(s)
   
Reply


Messages In This Thread
Unable to open a file using open file dialog windows vista - by umer830 - 12-16-2009, 09:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to update CSV File and need to Save same CSV File kotaramamohana 1 3,338 10-24-2015, 08:40 AM
Last Post: tigerliew
  Comapre txt file with different number of lines anushreebehura 0 1,580 06-02-2015, 06:28 PM
Last Post: anushreebehura
  How to read a text file using FSO from bottom to up order?? vallalarasu.p 0 2,398 10-13-2014, 11:14 AM
Last Post: vallalarasu.p
  How to find a file after downloading UFT_Newbie 1 2,871 09-18-2014, 08:43 PM
Last Post: UFT_Newbie
  how to create text file swayam 1 2,710 05-29-2014, 01:25 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)