Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pop up issue need Solution: its urgent
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
Hello
Can anybody please spacify how can i solve attached pop up i am able to solve simple pop up

one Interesting problem is that when i record the script the script is not generated and after recording while i m running the script i have found this issue.

Could anybody please take a look.

Thanks
Chetan


Attached Files Image(s)
   
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks 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
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
Hello Surya,
Thanks for Guide me. but i have found one strang problem here because when i recorded the script this dialogbox was not exists at that place, there is no any code like in your reply generated but while i am running that test case popup exists and QTP stop working and generate an Error message. i have recorded script 2 to 3 times but i haven't found that dialog box.

so my Question is :"
1) Can i recorded that part at run time ?
while i am recording that pop up run time or add in add in object repository it still displayed an error.
Reply
#4
Solved: 11 Years, 4 Months, 4 Weeks ago
what is the pop-up that you getting, i think it was Already Exists dialog box rgiht.
Then you can record that too and chage the code accordinglyt
Reply
#5
Solved: 11 Years, 4 Months, 4 Weeks ago
Thanks a lot its work.

thanks
Chetann!
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)