GCC CRM 'Error on Page' executing CUITe automation

Sep 10, 2013 at 6:25 PM
I'm using CUITe 1.06 (for .NET 4.5) to write test automation for GCC CRM.
I'm using the following code to launch the URL - if I execute with 'Debug Tests' I usually don't have this problem - but executing with 'Run Tests' will consistently generate the 'Error on page.' I'm calling this function with the following URL: https://samsgccrmsqld04
        public BrowserWindow RetrieveGccCrmBrowser(string url)
            const string DialogNameBase = @"Microsoft Dynamics CRM";
            Assert.IsFalse(string.IsNullOrWhiteSpace(url), "RetrieveGccCrmBrowser: 'Url' parameter is NULL or Empty: FAIL.");
            //var uri = new Uri(url);
            //var searchFor = BrowserWindow.Launch(uri);
            var searchFor = CUITe_BrowserWindow.Launch(url);
            Assert.IsNotNull(searchFor, "RetrieveGccCrmBrowser: Could not find Browser Window URL '{0}': FAIL.", url);
                "RetrieveGccCrmBrowser: Window '{0}' should contain '{1}': FAIL.",
            return searchFor;
Details concerning the 'error on page' issue:
Microsoft Dynamics CRM Error Report Contents

<Message>Object doesn't support property or method 'setProperty'</Message>
<BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3)</BrowserUserAgent>

Do you have any suggestions?
Sep 15, 2013 at 4:53 PM
Hi Greg,

This doesn't seem to be a CUITe issue because the code you pasted only launches the web page which seems to work without issue.

The "Error on page" is most probably a result of invalid JavaScript code on the page, specifically line 238 as the error suggests.

What code exists on line 238?

Does the error appear when using Visual Studio's built-in Coded UI Test Recorder?

Does the error appear when launching the web browser manually?

This does not seem related with CUITe and so it might be best to get help in the CRM Development msdn forum here.

Thank you.
Sep 20, 2013 at 1:34 PM
Thank you - I had reached a similar conclusion!
This problem does not repro when launching the browser manually
I hoped you had heard of a similar issue, and might have some suggestions regarding recommended IE settings for executing CUITe test automation
Thank you again - I'll follow-up with the CRM Development msdn forum
Sep 27, 2013 at 7:43 PM
This 'Error on page' occurred when executing tests from a client system with Win8 and IE10
It did not occur when executing tests from a client system with Win2K8 R2 SP1 and IE9

Thought others might be interested!