Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting file saved in a location
#1
Not Solved
Hi,
I am working on a desktop application.

Suppose i want to open a file in paint which is in "D" drive in a folder. If i try to record, it records in co-ordinates and on execution it make problem.
Code:
Window("Paint").WinObject("NetUIHWND").Click 43,45
Window("Paint").Window("Window").WinObject("NetUIHWND").Click 65,81
Window("Paint").Dialog("Open").WinTreeView("SysTreeView32").Select "Desktop;Computer"
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 348,63
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 348,63
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 119,167
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 119,167
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 302,220
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 302,220
Window("Paint").Close

If i try to create descriptive code it identifies as winobject when i go to open folder. I want to write vb code not recording method

Please help
Reply
#2
Not Solved
Use FileSystemObject instead
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Access not saved excel file randhirsinghskhn 0 1,025 09-04-2018, 07:26 AM
Last Post: randhirsinghskhn
  How to paste file location in QTP camillelola 0 1,535 08-09-2018, 10:54 AM
Last Post: camillelola
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,626 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  Selecting values from drop down using QTP. prempujaripati 2 46,747 06-26-2014, 06:06 PM
Last Post: rasmirani
  Selecting a value from a Dropdown qtpbeginner78 12 18,357 06-10-2013, 11:10 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)