Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QTP Not able to recognize second browser....

Status
Not open for further replies.

qtptask

Programmer
Aug 10, 2007
1
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top