Exception thrown attempting to launch Internet Explorer

7 posts, 0 answers
  1. John
    John avatar
    3 posts
    Member since:
    Aug 2011

    Posted 11 Aug 2011 Link to this post

    Hello

    I am getting this error when I try to run a recorded web test against internet explorer:

    System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.

    The internet explorer window opens up, but nothing else happens, the pages starys on About:Blank

    There are numerous posts on this forum which tell you to disable browser plugins and a few others. is there any definitive place where all the causes are stored in a kb article?

    Cheers
    Alex

  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 11 Aug 2011 Link to this post

    Hi John,
        here's it is:
    http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/recording-problems/unable-to-launch-recorder.aspx

    Let us know if you're still unable to resolve the issue.

    Best wishes,
    Stoich
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  3. John
    John avatar
    3 posts
    Member since:
    Aug 2011

    Posted 12 Aug 2011 Link to this post

    The problem was with the running of the test, not the recording.

    Migrating the application to another machine seemed to work, though this would have been a lot trickier if migration was not an option.

    Either way, it seems like its working ok now.

    Cheers
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 16 Aug 2011 Link to this post

    Hello John,
      I understand your concern. We can still troubleshoot the original issue if you like to. I'm sure we'll be able to get to the bottom of the issue.

    Regards,
    Stoich
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
  5. Mandy
    Mandy avatar
    1 posts
    Member since:
    Apr 2015

    Posted 04 May 2015 Link to this post

    I am having a similar problem. When I run/debug my test, a browser window opens, but remains blank (rather than running my test) and I get the following error (in IE10): 

     

    Assert.IsFalse failed. There was an error during test setup. System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.InvalidOperationException: No process is associated with this object.
       at System.Diagnostics.Process.EnsureState(State state)
       at System.Diagnostics.Process.EnsureState(State state)
       at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
       at System.Diagnostics.Process.WaitForExit(Int32 milliseconds)
       at ArtOfTest.Common.Win32.Connector.Start(ConnectorEntryPoint entryPoint, IntPtr windowHandle)
       at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow, Int32 waitTimeout)
       at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Int32 waitTimeout)
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
       --- End of inner exception stack trace ---
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)

    Assert.IsFalse failed. There was an error during test setup. System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.InvalidOperationException: No process is associated with this object.
       at System.Diagnostics.Process.EnsureState(State state)
       at System.Diagnostics.Process.EnsureState(State state)
       at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
       at System.Diagnostics.Process.WaitForExit(Int32 milliseconds)
       at ArtOfTest.Common.Win32.Connector.Start(ConnectorEntryPoint entryPoint, IntPtr windowHandle)
       at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow, Int32 waitTimeout)
       at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Int32 waitTimeout)
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
       --- End of inner exception stack trace ---
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)

    System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.InvalidOperationException: No process is associated with this object.
       at System.Diagnostics.Process.EnsureState(State state)
       at System.Diagnostics.Process.EnsureState(State state)
       at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
       at System.Diagnostics.Process.WaitForExit(Int32 milliseconds)
       at ArtOfTest.Common.Win32.Connector.Start(ConnectorEntryPoint entryPoint, IntPtr windowHandle)
       at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Boolean findTabWindow, Int32 waitTimeout)
       at ArtOfTest.Common.Win32.Connector.Attach(IntPtr& handle, Int32 waitTimeout)
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
       --- End of inner exception stack trace ---
       at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch)

     

    Any help would be appreciated. Thanks,

     

    Mandy

  6. Nilton Cesar
    Nilton Cesar avatar
    1 posts
    Member since:
    May 2012

    Posted 05 May 2015 in reply to Mandy Link to this post

    I have the same error! I am using most recent version. 

    The test works well until i try to edit code. In fact io didn't edit anything just give a look to that and all the teste stop work!!

    That is the error:

    ------------------------------------------------------------
    '05/05/2015 10:02:56' - Executing test: '03 - Validar filtro central da grid', path: 'Consulta de Clientes\03 - Validar filtro central da grid.tstest.'
    '05/05/2015 10:02:56' - Using .Net Runtime version: '4.0.30319.34209' for test execution. Build version is '2015.1.319.0'.
    '05/05/2015 10:02:56' - Starting execution....
    '05/05/2015 10:03:00' - Detected custom code in test. Locating test assembly: Index.dll.
    '05/05/2015 10:03:00' - Assembly Found: C:\Projetos\Index\branches\demanda_19122\Testes\Index\bin\Index.dll
    '05/05/2015 10:03:00' - Loading code class: ''.
    '05/05/2015 10:03:00' - Failure detected during execution. Details:
    ------------------------------------------------------------
    '05/05/2015 10:03:00' - System.ArgumentException: Seqüência não pode ter comprimento zero.
       em System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
       em System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
       em System.Reflection.Assembly.GetType(String name)
       em ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureTypeExists(Assembly assm, String typeName)
       em ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
       em ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
       em ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
    ------------------------------------------------------------
    '05/05/2015 10:03:01' - Test completed!

     

    Any sugestion?

  7. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 07 May 2015 Link to this post

    Hello,

    Most of the problems with the IE browser are described in this article. Please follow the instructions in order to solve the problem you are experiencing.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top