Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pop up issue need Solution: its urgent
#2
Solved: 11 Years, 4 Months ago
Your code should look like this, this is not the complete code but main you should look is how i cam saving a CSV File that is what you screen shot shows...


Code:
If Browser("Browser").Exist(3)  Then
If  Browser("Browser").WinButton("To help protect your security,").Exist(3) Then
                            
                            Browser("Browser").WinButton("To help protect your security,").Click  1,1,micRightBtn
                            Browser("Browser").WinMenu("menuobjtype:=3").Select "Download File..."
                            
                            Browser("Browser").Sync
                        End If
                        
                    If  Browser("Browser").Dialog("File Download").WinButton("Save").Exist(10) Then
                        Browser("Browser").Dialog("File Download").Activate
                        Browser("Browser").Dialog("File Download").WinButton("Save").Click
                        If  Browser("Browser").Dialog("File Download").WinButton("Save").Exist(5) Then
                            Browser("Browser").Dialog("File Download").WinButton("Save").Click
                        End If
                        
                        If Dialog("File Download").Dialog("Save As").WinEdit("File name:").Exist(10) Then
                                    Set CurrentTest = QCUtil.CurrentTest
                                    Dim sFolderName
                                    sFolderName = CurrentTest.Name
                                    sFileLoc = ResultScreenShotLocationPath_write & sFolderName & "\" & MakeUniqueName & ".csv"
        
                                    Set fso = CreateObject("Scripting.FileSystemObject")
                                    If not fso.FolderExists (ResultScreenShotLocationPath_write&sFolderName) Then
                                        fso.CreateFolder( ResultScreenShotLocationPath_write&sFolderName )
                                    End If
                                    
                                    Dialog("File Download").Dialog("Save As").WinEdit("File name:").Set  sFileLoc
                                    Reporter.ReportEvent micPass, "CSV File", "File has been saved at locaiton "&sFileLoc
                                    wait(3)
                                    Dialog("File Download").Dialog("Save As").WinButton("Save").Click
                                    If Dialog("File Download").Dialog("Save As").Dialog("Save As").WinButton("Yes").Exist(3) Then
                                        Dialog("File Download").Dialog("Save As").Dialog("Save As").WinButton("Yes").Click
                                    End If

                                     If     Browser("Browser").Exist(3) Then
                                            Browser("Browser").Close
                                    End If
                                    Parameter("OutputCSVFileName_OUT") = sFileLoc
                        End If
                    Else
Reply


Messages In This Thread
RE: Pop up issue need Solution: its urgent - by surya_7mar - 12-09-2008, 11:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Scrambled characters in uft Solution Explorer Dwarak Calayampundi 0 1,540 05-25-2016, 05:02 AM
Last Post: Dwarak Calayampundi
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,639 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,534 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
Rolleyes QTP pop up window handling piyush8793 3 16,890 10-15-2015, 11:03 PM
Last Post: Venkateswarluponna
Exclamation URGENT: ActiveX component can't create object citibank_ani 3 15,560 09-09-2014, 01:02 PM
Last Post: VarunKaushik

Forum Jump:


Users browsing this thread: 2 Guest(s)