Micro Focus QTP (UFT) Forums
winobjects - 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: winobjects (/Thread-winobjects--6376)



winobjects - rjkmr.aiht - 05-22-2012

hi all
here im using a jar application , i need to select a file from the dialog box
that dialog box is a win object
please any one help me for code to select the particular file from the the open dialog box


here i attached piece of code and



Window("Welcome to Data Loader").Dialog("Load Deletes").Dialog("Open").WinObject("DirectUIHWND").Click 85,64


if u have any issue please reply me


RE: winobjects - sshukla12 - 05-22-2012

Hi,

Use file system object FSO for the same. that would be correct approach.

Regards,
Sankalp


RE: winobjects - falvi - 05-25-2012

i came across this very same issue few months back, and well for me just typing the name of the file worked. u can just add the WinEdit object in Object Repository and .type or .set the file's name and click on open.


RE: winobjects - rjkmr.aiht - 05-28-2012

hi

thank u for the reply, here im using the same win edit type to move to files





RE: winobjects - falvi - 05-28-2012

you are welcome, glad to know it's working for you this way Smile
(just a tip: .type method worked better for me for winedit, than .set)