Hi,
I am using Microsoft's Coded UI api to launch IE and navigate to CRM 2013's default page (which is out of box). But closing the browser throws a prompt indicating Microsoft Dynamic CRM has encountered an error. Using the below code:
BrowserWindow ie = BrowserWindow.Launch("https://crm2013server/TestOrg"); //launch IE & go to CRM org
ie.Close(); // close IE, and it throws the error
The error details:
Microsoft Dynamics CRM Error Report Contents
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Object doesn't support property or method 'setProperty'</Message>
<Line>238</Line>
<URL>/main.aspx</URL>
<PageURL>/main.aspx#457966145</PageURL>
<Function>anonymous(){varreadyStateValue=0;//Copyoverthevalues..CopyOverValues();try{readyStateValue=wrapperNode.readyState;}catch(ex){}//Ifthehandlerisnotnull.Invokethehandlerand//storetheexceptionthrown.varexceptionNode=null;if(wrapperNode.onreadystatechange!=nul</Function>
<CallStack>
<Function>anonymous(){varreadyStateValue=0;//Copyoverthevalues..CopyOverValues();try{readyStateValue=wrapperNode.readyState;}catch(ex){}//Ifthehandlerisnotnull.Invokethehandlerand//storetheexceptionthrown.varexceptionNode=null;if(wrapperNode.onreadystatechange!=null){try{wrapperNode.onreadystatechange();}catch(ex){exceptionNode=ex;}}//IfthereadyStateisDONE.Updatetheattributeif(readyStateValue==4){inProgress=0;vartrackingElement=__vsttGetWfrTrackingElement();//updatethetrackinginformation..if(trackingElement){varcounterValue=trackingElement.getAttribute('xmlhttpcount');if(counterValue>0){trackingElement.setAttribute('xmlhttpcount',--counterValue);__vsttAjaxLog("XMLHttpRequestReadyState4Reached:Decrementedcounter");}}}//Re-throwtheexceptionfromthereadystatehandlerif(exceptionNode!=null){throwexceptionNode;}}</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3; 6511897)</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1600x900</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2014-01-21T16:44:16</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{53B91979-E87F-E311-921F-001DD8B81C5A}</OrgID>
<UserID>{1EE6BB89-E87F-E311-921F-001DD8B81C5A}</UserID>
<CRMVersion>6.0.1.61</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>
George Cai