This is a migrated thread and some comments may be shown as answers.

IE 11 browser blank and System.TimeoutException

6 Answers 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vincent
Top achievements
Rank 1
Vincent asked on 06 Jul 2017, 12:04 PM

I am trying to follow a simple example to get IE11 automation working on a windows 7 box. I get a browser window open with about:blank in the URL and System.TimeoutException after a while.

The code works on my local developer machine but does not work on a remote desktop with a basic windows 7 64-bit install.

I have configured the browser, uninstalled and reinstalled Test Framework (Testing_Framework_2017_2_0530_1_Free.msi). Tried building x86, x64, Any CPU in both debug and release.

 

Again, this works on my local machine but not the remote machine. Are there pre-requisites I am unaware of? The only thing I install is the Test Framework.

 

Any help would be very much appreciated.

6 Answers, 1 is accepted

Sort by
0
Vincent
Top achievements
Rank 1
answered on 06 Jul 2017, 12:21 PM

My Code

 

using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.ObjectModel;
using System;
 
namespace testTelerik
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Start");
            // Initialize the settings
            Settings mySettings = new Settings();
            mySettings.LogAnnotations = true;
            mySettings.Web.EnableScriptLogging = true;
 
            // Set the default browser
            mySettings.Web.DefaultBrowser = BrowserType.InternetExplorer;
 
 
            // Create the manager object
            Manager myManager = new Manager(mySettings);
            String error;
            Console.WriteLine("Configuring browser");
 
            myManager.ConfigureBrowser(BrowserType.InternetExplorer, out error);
 
            Console.WriteLine(error);
 
            // Start the manager
            myManager.Start();
 
            Console.WriteLine("LaunchNewBrowser");
            // Launch a new browser instance. [This will launch an IE instance given the setting above]
            myManager.LaunchNewBrowser();
            Console.WriteLine("NavigateTo");
            // Navigate to a certain web page
            myManager.ActiveBrowser.NavigateTo("http://www.google.com");
 
            Console.WriteLine("ByTagIndex");
            // Perform your automation actions.
            Element mybtn = myManager.ActiveBrowser.Find.ByTagIndex("input", 3);
            myManager.ActiveBrowser.Actions.Click(mybtn);
 
            Console.WriteLine("Dispose");
            // Shut-down the manager and do all clean-up
            myManager.Dispose();
        }
    }
}


0
Vincent
Top achievements
Rank 1
answered on 06 Jul 2017, 01:09 PM
Chrome DOES work!
0
Vincent
Top achievements
Rank 1
answered on 06 Jul 2017, 01:28 PM
Chrome works!
0
Elena
Telerik team
answered on 11 Jul 2017, 08:08 AM
Hello Vincent,

Thank you for sharing details about the issue you have faced. 

It seems that the remote machine does not have Visual Studio installed and your developers machine does. Therefore IE is not working on that machine.

To resolve this misbehavior you could install Team Explorer 2013 from the MSDN site. Please note that this download is only available for signed in users with a Microsoft account. 

This is an issue we have investigated in depth and quite soon - within our next planned release - a fix will be introduced and additional installations will not be required. 

I hope the above information would be helpful for you. Thank you for your understanding! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Vincent
Top achievements
Rank 1
answered on 11 Jul 2017, 08:16 AM

Thanks for getting back to me Elena.

I've managed to work around the IE problem by installing microsoft.mshtml.dll to the GAC by using gacutil.exe. So far it seems to work and allows us to automate the process for our CI builds.

Kind Regards,

Vincent

0
Elena
Telerik team
answered on 11 Jul 2017, 12:41 PM
Hi Vincent,

Thanks for getting back to me. 

This is the other workaround which is a bit more complex for part of our users which are not familiar with coding at all. Though I am glad to know you resolved the issue on your end. 

As I have mentioned in one of my replies to your posts recently - this behavior will be fixed with our next release and none of the above will be required. 

Thank you once again for your cooperation! 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Vincent
Top achievements
Rank 1
Answers by
Vincent
Top achievements
Rank 1
Elena
Telerik team
Share this question
or