12-16-2009, 09:26 AM
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
Attached screenshort explains the story in more detail. Please suggest a wayout
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