Siax
13 years agoContributor
IE run twice Browsers.item function
Hi,
I am running the sample project Web Testing > Order sample on my machine but I have an issue.
When this code runs it runs IE twice and chrome. Missing out Firefox. does anyone know how to correct this issue?
var i, BrowserName;
Log.Message("Found " + aqConvert.IntToStr(Browsers.Count) + " browsers:");
for(i = 0; i < Browsers.Count; i++)
{
switch (Browsers.Item(i).Family)
{
case btIExplorer:
BrowserName = "Internet Explorer";
break;
case btChrome:
BrowserName = "Google Chrome";
break;
case btFireFox:
BrowserName = "FireFox";
break;
default:
BrowserName = "Unknown Browser";
}
Thanks,
Stu
Test Complete 9, windows 7 Enterprise.
I am running the sample project Web Testing > Order sample on my machine but I have an issue.
When this code runs it runs IE twice and chrome. Missing out Firefox. does anyone know how to correct this issue?
var i, BrowserName;
Log.Message("Found " + aqConvert.IntToStr(Browsers.Count) + " browsers:");
for(i = 0; i < Browsers.Count; i++)
{
switch (Browsers.Item(i).Family)
{
case btIExplorer:
BrowserName = "Internet Explorer";
break;
case btChrome:
BrowserName = "Google Chrome";
break;
case btFireFox:
BrowserName = "FireFox";
break;
default:
BrowserName = "Unknown Browser";
}
Thanks,
Stu
Test Complete 9, windows 7 Enterprise.