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").ActivateAttached screenshort explains the story in more detail. Please suggest a wayout


All I want is just to enter path directly in the edit box associated with WEBFILE object.
dont screens in your project gets minmized or change location and low level recording scripts fails. Because low level recording can do a task but it is unpredictable in execution. Thats why I am trying to avoid it , may be its the last resort i'll have to do. Becuase if HP responded you in your ticked for low level recording what can we do but they are real bastards as FILE OPEN/SAVE are common features in an application