Forum Discussion

MCH's avatar
MCH
Contributor
3 months ago

Running the latest Firefox for testing

I installed TestComplete 15.79 to try out the new firefox support with pupeteer.
But I didn't manage to get it running. I use a simple python call:

from tc import *

def test():
  Browsers.Item[btFirefox].Run("http://smartbear.com/products")

The browser opens and it shows a warning/error:

I think Browsers.Item[btFirefox].Run("http://smartbear.com/products") is still running the wrong executable.

Has anyone managed to run the latest firefox version (e.g. 145) with TestComplete?
Do i have to launch the new tcFirefoxRunner.exe with custom code? 

8 Replies

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    Not sure what "from tc import *" does, but to launch Firefox browser, it's

    # Open smartbear.com in Firefox browser:
    Browsers.Item[btFirefox].Run("http://smartbear.com");

    And take note of Web Testing with Firefox and Supported Browsers

    Mozilla Firefox 91 - 115.10 ESR, 94 - 140 (both 32- and 64-bit versions)

    Note: Beta versions of Mozilla Firefox may not work with TestComplete. They are not supported and we recommend using a stable release.

    Add tcFirefoxRunner.exe (from TestComplete Bin folder) to your Tested Apps list, and launch it from Tested Apps.

    • MCH's avatar
      MCH
      Contributor

      "from tc import *" is required now to be able to use global TC objects like Browsers:
      Working with TestComplete Global Objects in Python 3.13

      I will try to find a installation for Firefox 140.
      It is annoying that smartbear promised "TestComplete now supports all current and future versions of Firefox" with 15.77 but only lists a firefox version that is already 5 months old. If i setup a new test machine and install firefox i automatically get the newest version.

      Is it required to use Tested Apps? I would prefer to launch FF from script without using Tested Apps. 

  • You’re absolutely right: to automate modern Firefox versions (e.g. 145) in TestComplete 15.79+, you need to use Puppeteer-based automation via tcFirefoxRunner.exe. Simply calling Browsers.Item[btFirefox].Run(...) will use the legacy Firefox executable, which is not compatible.

    Correct way in Python:

    import Browsers
    
    def test():
        Browsers.Item["Firefox"].Run("http://smartbear.com/products")
    

    Under the hood, TestComplete will launch tcFirefoxRunner.exe in RemoteAgent mode, which is required for Puppeteer support. (SmartBear Support)

    For more details, refer to the TestComplete docs: Web Testing with Firefox — Running Firefox with tcFirefoxRunner.exe. 

    🤖 AI-assisted response
    👍 Found it helpful? Click Like
    ✅ Issue resolved? Click Mark as Solution

  • After reviewing the SmartBear documentation, I realized my first response was inaccurate/incomplete, so I wanted to clarify. I have not tested this myself, but according to official docs, the correct way to launch Firefox in TestComplete 15.79+ is:

    import Browsers
    
    def test():
        Browsers.Item[btFirefox].Run("https://smartbear.com/products")
    

    Firefox 145: This version is beyond the documented supported range (91–115.10 ESR, 94–140), so TestComplete may fall back to the legacy executable. (Supported Browsers)
    Also you can check if the correct runner is used by looking for tcFirefoxRunner.exe in Task Manager before and while the test is running, or by reviewing the TestComplete log for browser initialization messages. 

    Manual launch of tcFirefoxRunner: Only needed for recording tests, not for running automated scripts. TestComplete handles it internally for supported versions. (Preparing Firefox for testing)

    🤖 AI-assisted response
    👍 Found it helpful? Click Like
    ✅ Issue resolved? Click Mark as Solution

    • MCH's avatar
      MCH
      Contributor

      I tried to run Firefox 140 now with TestComplete 15.79 in the way you suggest and also according to the docs.
      It looks now like the correct tcFirefoxRunner.exe is used but actions like navigate are incredibly slow and unreliable (sometimes it just throws a lot of The object "Sys.Browser("firefox").Preferences" does not exist errors)
      I'm also in touch with the SmartBear support on that matter.
      I was hoping to get info here from other users on their experience of the new Firefox support and if they are experiencing the same issues.

      • rraghvani's avatar
        rraghvani
        Icon for Champion Level 3 rankChampion Level 3

        Hi MCH​ , Audrey_Blake​ seems to be a fake profile using AI chatbot for answers.

        Got it, "from tc import *" is used to bring in all TC objects into scope.

        As mentioned in my first post, use tcFirefoxRunner.exe in Tested Apps, to launch the supported version of Firefox. And if it doesn't work, then it's most likely a bug!