Forum Discussion

TestApp's avatar
TestApp
Occasional Contributor
8 years ago
Solved

IE 11 is not working with Testcomplete

Please see attached the error (waiting for page(*) ) I am getting while running the scripts with TestComplete on IE11. The same scripts used to work with the previous versions of internet explorer (IE9) . Please note that these scripts are still working with chrome. Any help will be appreciated. 

 

Thanks,

  • When you run the RunIE() function, what errors do you receive?

    There should be no "Waiting for page('*') using that function as there is no call "page = Sys.Browser("*").Page("*");"

    Also, do you only have one instance of Internet Explorer running? Please check your Task Manager.

18 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    Some quick diagnostic questions:

    What version of TestComplete?
    Have you run through the different recommended settings as per https://support.smartbear.com/viewarticle/81419/?

    What OS are you running?
    Can you display the code you're using for opening the browser?

    My best guess: You're running into a problem with the multiple processes (LCIE) especially if you're running on Windows 10. TestComplete is looking for the page on one process while the page is actually associated with a different process.  Try disabling that as per the above link and see if that helps.

    • TestApp's avatar
      TestApp
      Occasional Contributor

      Thanks for the quick response. Please see below my answers

       

      Some quick diagnostic questions:

      What version of TestComplete?

       

      Version 11.11.1064.7


      Have you run through the different recommended settings as per https://support.smartbear.com/viewarticle/81419/?

       

      Yes, I did

      What OS are you running?

      Windows 7


      Can you display the code you're using for opening the browser?

       

      Please see below the sample code as requested

      var url = excelValues.Item("URL") // reading the value from excel

       

          var selectedBrowser = Browsers.btIExplorer

          Browsers.Item(selectedBrowser).Run(url);

          page = Sys.Browser("*").Page("*");

       

      Thanks,

      • dnguyen's avatar
        dnguyen
        SmartBear Alumni (Retired)

        Do you still experience this issue when using our JScript example?

         

        function evalXPath()
        {
        
           // Obtain the Page object 
           var url = "http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/onclickEX1.htm";
           Browsers.Item(btIExplorer).Run(url);
           var page = Sys.Browser("*").Page("*");
        
           // Call the function 
           var tmp = page.EvaluateXPath("//INPUT[contains(@onclick, 'CookieGroup')]");
        
           // Check the result 
           if (tmp != null)
           {
             // Convert the array to the JScript-compatible format 
             var arr = tmp.toArray();
             // and click the elements that were found 
             var i;
             for (i =0; i<arr.length; i++)
              arr[i].Click(); // Note we refer to the array item 
           }
           else 
           { 
             // If nothing was found, post a message to the log 
             Log.Error("Nothing was found.");
           }
        }

        Example script from: https://support.smartbear.com/viewarticle/85288/#Example

  • saguirre's avatar
    saguirre
    Occasional Contributor

    Hopefully, someone can help me out since I have the same exact problem with IE11 not working with TestComplete. I have done all of the steps for setting up IE for testing and I did try what the OP did by running TC as an Administrator. I am not doing scripting, though but a simple keyword test. When the test executes, IE11 never comes up. I have Windows 10 and I am using IE11 (11.674.15063.0). My TestComplete is version: 12.40.2869.7 x64.

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      Can you post a screenshot of your keyword test that shows where you're calling the operation to run the browser?

      • saguirre's avatar
        saguirre
        Occasional Contributor

        OK, I think I am all set. I think even though I went through the preparation steps for IE, for some reason, my Protected Mode was enabled. My IE informs me in the dialog that some setting are managed by my company's system administrators. I hope it's not going to revert to being enabled again. Also, I did find a couple of IE processes in the Background processes section of my Task Manager. I killed those. My test seems to work fine now.