Hi All,
I have created three browser, QTP able to recognize first two browser only and not third one.
When i click on one graph button in the second browser. It is showing those graph in the third browser, so here i wrote script for close the third browser, but it is closing the second browser only
Can somebody help, how could I resolve this problem, by closing third browser only.
here is the script, where in last if loop i am just closing the third browser, but it is closing the second one only
If Browser("MMD - Investment Group").Page("MMD - Investment Group").Image("Styles_1").Exist then
Browser("MMD - Investment Group").Page("MMD - Investment Group").Image("Styles_1").Click
Browser("MMD - Investment Group").Dialog("Microsoft Internet Explorer").WinButton("OK").Click
End If
wait(25)
If Browser("MMD - Investment Group - Trend").Page("Investment Group Analysis").Exist Then
Reporter.ReportEvent micPass, "Trend Download Status:::", "Trend is available to see"
Browser("MMD - Investment Group - Trend").Page("Investment Group Analysis").WebButton("Close").Click
'Browser("name := Investment Group Analysis - Styles - Trends", "title := Investment Group Analysis - Styles - Trends - $ Total").WinToolbar("object class := ToolbarWindow32").Press "&File"
'Browser("MMD - Investment Group - Trend")
'Browser("name := Investment Group Analysis - Styles - Trends", "title := Investment Group Analysis - Styles - Trends - $ Total").WinMenu("ContextMenu").Select "Close"
Else
Reporter.ReportEvent micFail, "Trend Download Status:::", "Trend is not available to see"
End If
I have created three browser, QTP able to recognize first two browser only and not third one.
When i click on one graph button in the second browser. It is showing those graph in the third browser, so here i wrote script for close the third browser, but it is closing the second browser only
Can somebody help, how could I resolve this problem, by closing third browser only.
here is the script, where in last if loop i am just closing the third browser, but it is closing the second one only
If Browser("MMD - Investment Group").Page("MMD - Investment Group").Image("Styles_1").Exist then
Browser("MMD - Investment Group").Page("MMD - Investment Group").Image("Styles_1").Click
Browser("MMD - Investment Group").Dialog("Microsoft Internet Explorer").WinButton("OK").Click
End If
wait(25)
If Browser("MMD - Investment Group - Trend").Page("Investment Group Analysis").Exist Then
Reporter.ReportEvent micPass, "Trend Download Status:::", "Trend is available to see"
Browser("MMD - Investment Group - Trend").Page("Investment Group Analysis").WebButton("Close").Click
'Browser("name := Investment Group Analysis - Styles - Trends", "title := Investment Group Analysis - Styles - Trends - $ Total").WinToolbar("object class := ToolbarWindow32").Press "&File"
'Browser("MMD - Investment Group - Trend")
'Browser("name := Investment Group Analysis - Styles - Trends", "title := Investment Group Analysis - Styles - Trends - $ Total").WinMenu("ContextMenu").Select "Close"
Else
Reporter.ReportEvent micFail, "Trend Download Status:::", "Trend is not available to see"
End If