Micro Focus QTP (UFT) Forums
Automating save dialog box in windows using UFT - 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: Automating save dialog box in windows using UFT (/Thread-Automating-save-dialog-box-in-windows-using-UFT)



Automating save dialog box in windows using UFT - shipu - 01-16-2015

Hi,

Tool: UFT 12.0

1. I have the below code that click save in the save dialog box to save the pdf file:

PHP Code:
Dialog("Save current report in").WinEdit("File name:").Set "H:\Projects\Automation_Resources\A1.pdf"
   
Dialog("Save current report in").WinButton("Save").Click 

But the pdf file is being saved in H:\ directory instead. I ran the same code with QTP and it worked fine. I am not sure what is happening with UFT.

2. I have the below code. It supposed to double click "test" folder but it just select the folder instead. How can I double click the test folder so I can select a file inside the test folder?

PHP Code:
Dialog("Save current report in").WinObject("Items View").WinList("Items View").Select "test" 

Thanks,
S