04-23-2008, 01:40 AM
If the second browser window opens, QTP gets confused. So in order for QTP to recognize the second browser use CreationTime. CreationTime:=0 referrs to the first browser window and CreationTime:=1 referrs to the second and on and on. For example:
will click on a View directory button in the second browser window.
Code:
Browser("CreationTime:=1").Page("micClass:=Page").WebButton("name:=View Directory").click