Better way of finding the correct instance of IE in the .NET code.
In TestComplete, we have code like this:
dim ieaid : set ieaid = dotNet.AutomationLibrary.IEAid.zctor(sServer)
That sServer is then passed into the .NET dll and used here:
public IEAid(string location)
{
foreach (InternetExplorer ieIter in new ShellWindows())
{
if (ieIter.LocationURL.Contains(location) && ieIter.Visible)
{
This code is looking for an instance of Internet Explorer where the URL contains the string found in the <Server> element in the BillOfGoods file. This approach doesn’t work in a distributed environment because the browser is redirected to a different server. So to fix this l need to find a better way of finding the correct instance of IE in the .NET code.
Any help on this will definately be appriciated.
Thanks
Ashish