Forum Discussion

malj's avatar
malj
Contributor
12 years ago

Loaded Page not Visible in IE

I am trying to create a very simple test that opens a URL and checks how long it takes to load the page. It is not the absolute numbers that are interesting. Primarily, we want to verify that the right page is loaded and how the load time varies at different time of day. I thought TestComplete would be suitable for this and why not run this test with different browsers to see if there are any browser-specific issues. 



However, there seems to be some kind of issue with IE. If I run the code below, the page seems to load (no errors in the log and it takes a resonable number of seconds) but the URL does not appear in the address field and the page does not become visible. What seems to be the problem here? It works as expected in Chrome.  



Browsers.Items(btIExplorer).Run "myURL", 10000 
  • malj's avatar
    malj
    Contributor
    Hi Tanya,



    We recently discovered that this problem is due to McAfee SiteAdvisor, a problem known by SmartBear. The expected page object is seen in TestComplete's object explorer but the page is not shown by IE. 



    SmartBear has been unable to find a permanent solution. The best known option is to disable SiteAdvisor, however, if there's no way to do this, you can use a workaround. The idea is to navigate to any page before the actual test steps by calling ToURL from the Sys.Browser("iexplore").BrowserWindow(0).Window("Frame Tab", "", 1).Tab("*").Window("Shell DocObject View", "", 1).Window("Internet Explorer_Server", "", 1) object. After that, pages start loading correctly, and tests run a expected.



    In my case I had to clear some browser history to make it work.

       

  • Hi Magnus,


     


    Are you specifying the URL in the complete format - including the protocol name, trailing slash and so on? Like this: http://www.google.com


     


    If this doesn't help, answer the following questions: 


     - what IE version are you using?


     - what TestComplete version is installed on your computer?


     

  • malj's avatar
    malj
    Contributor
    Hi Tanya,



    I did use the complete format, except for the trailing slash. I have now tried that and still see the same behavior. 


    I am using IE 9.0.8112-16421 on Windows 7 Professional 64-bit and TestComplete 9.20.


  • Hi Magnus,


     


    Thanks for the info. Unfortunately, for me, it is still unclear what exactly happens when executing the test in IE. I would appreciate it if you recorded a video demonstrating the problem. To record a video, you can use Jing - a free screen capture tool ( http://www.jingproject.com ).