Forum Discussion

Siax's avatar
Siax
Contributor
13 years ago

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.

5 Replies

  • Hi Stuart,


    Could you please specify what version of Firefox you are using? Also, please let me know whether your operating system is x32 or x64.


    Thanks in advance.

    Ann

  • Siax's avatar
    Siax
    Contributor
    Hi Ann,



    I am running with fire fox version 13.0 x64



    Kind regards,

    Stu
  • Hi,


    Well, since you are using a x64 operating system, your tests are executed with two Internet Explorer versions - x32 and x64.


    As for Firefox, it looks like TestComplete cannot find it. TestComplete's support for Mozilla Firefox 13 is provided as a patch. Have you applied this patch?


    Ann

  • Siax's avatar
    Siax
    Contributor
    Hi Ann,



    Thank you for the patch link.. In future how do I keep in the loop with all the patch updates and improved implemented features without having to go searching for them? such as an RSS feed or email updates?



    Kind Regards and thanks!

    Stu
  • Hi,


    I'm afraid, we have no RSS feed for this thing since most of TestComplete's features are updated in the product's minor updates.

    As for Firefox, its new versions are released frequently. So we provide support for Firefox newer versions in a form of patches not to make you wait for the next TestComplete update.


    Our standard approach is to release a patch within a month after a new Firefox version is released. Check the Mozilla Firefox Patches page some time after a new Firefox version is released.


    Ann