Forum Discussion

bhcommunity1's avatar
bhcommunity1
Contributor
4 years ago

Firefox - Inconsistent Launching of browser with URL value - keep running into Waiting for Page('*')

(System) Microsoft Windows 10 Pro, 64-bit (10.0 Build 19041) TestComplete: Version: 14.74.437.7 x64 - Have the latest patch for supporting Firefox 86.0.1 FirefoxVersion : 86.0.1 (64-bit)   [Sys...
  • AlexKaras's avatar
    AlexKaras
    4 years ago

    Hi,

     

    CommonUtils.closeAllBrowsers2();

    .Close() command not always ends the process. Especially with browser process. Thus I would try approach with .Terminate() that is described in the help article for the Close() method. (I also mentioned it in my previous reply.)

     

    > TestEngineEvents_OnStartTestCase()

    Are all your tests marked as test cases? Maybe OnStartTest event is better?

     

    The Firefox applications does have multiple sub-processes.

    This is a usual behavior of modern browsers.

     

    P.S.

    One more comment as for the code of closeAllBrowsers2() function:

    > browsers[i].Close();

    a) As it is documented, .Close() method does not return information of whether or not the process was actually closed. Thus, the next message (Log.Message("...Closed a browser.") ) is misleading as it confirms the action that possibly was not completed.