Forum Discussion

sekhan's avatar
sekhan
Occasional Contributor
15 years ago

Work with web browser

Hi all,



When I record or run test with Test Complete, if my web browsers (IE, Firefox...) were launched before, I will not work with this browsers. I don't know what the problem is. How must I do to work with this browsers without closing and launching them again?



Thanks

3 Replies

  • Hi,


    This problem can occur if you run a web browser under an administrator account and TestComplete under a non-administrator account. In this case, TestComplete may not have enough permissions to access the browser's data. To check if it is so, go to TestComplete's Object Browser and explore whether the browser process has the Page child node. If the Page node does not exist, the problem is actually in different user accounts.


    To solve the problem, run TestComplete under an administrator account. For more information, see Testing Applications Running Under Another User Account in the online documentation.

  • sekhan's avatar
    sekhan
    Occasional Contributor
    Hi Margaret,



    Thanks for your answer, I  launched TC with administrator acc (I worked through Run As mode). But I don't still execute my test when firefox was lauched before. I get an error message: "There is (are) 1 running instance(s) of "C:\Program Files\Mozilla Firefox\firefox.exe". New instances will not be launched".


  • Hi,


    The problem is that your test has an operation or calls a method that runs the browser. As your browser is already running, TestComplete cannot launch one more browser instance and displays this message. This is done to prevent situations when you record or perform test actions against multiple instances of an application and therefore get incorrect results.


    To resolve the problem, delete the operation or method that runs the browser from your test. Also, before the test run, make sure that you launch the browser and TestComplete under the same account.