Firefox - Inconsistent Launching of browser with URL value - keep running into Waiting for Page('*')
- 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.