Cannot identify DOM object within Google Chrome

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 4
Joined: Thu Apr 19, 2018 3:41 pm

Cannot identify DOM object within Google Chrome

Post by Kalle » Thu Apr 19, 2018 3:46 pm


Running Ranorex Spy (or Recorder or similar), I cannot identify any DOM objects within a page in Google Chrome. It works flawlessly with Internet Explorer.
Chrome version 66.0.3359.117 (64 bit)
Ranorex Chrome plugin version 1.1.2

I get the following error in Ranorex.Spy.log:
2018-04-19 16:23:48.395|DEBUG|Ranorex.Plugin.ChromeWebFlavor|Failed to create Chrome DOMs: System.Runtime.Remoting.RemotingException: Failed to connect to an IPC Port: The system cannot find the file specified.

Server stack trace:
at System.Runtime.Remoting.Channels.Ipc.IpcPort.Connect(String portName, Boolean secure, TokenImpersonationLevel impersonationLevel, Int32 timeout)
at System.Runtime.Remoting.Channels.Ipc.ConnectionCache.GetConnection(String portName, Boolean secure, TokenImpersonationLevel level, Int32 timeout)
at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Ranorex.Core.IpcRemotingService.IPingable.Ping()
at Ranorex.Core.IpcRemotingService.GetClientInterface(String serverChannelName, String implTypeName, Boolean global, Type type)
at Ranorex.Core.IpcRemotingService.GetClientInterface[T](String serverChannelName, String implTypeName, Boolean global)
at Ranorex.Plugin.ChromeIpc.ChromeDom.GetChromeClientInterface()
at Ranorex.Plugin.ChromeWebFlavor.CreateChromeDoms(IntPtr hwnd, IList`1 flavorElements)

Appreciate any thought on why this might be!

User avatar
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: Cannot identify DOM object within Google Chrome

Post by qwertzu » Fri Apr 20, 2018 2:48 pm


Have you already tried to re-instrument Chrome?
Remove the plugin and add it again using the instrumentation wizard in Ranorex Studio. (tools--> Ranorex instrumentation wizard)

regards, qwertzu

Posts: 4
Joined: Thu Apr 19, 2018 3:41 pm

Re: Cannot identify DOM object within Google Chrome

Post by Kalle » Fri Apr 20, 2018 10:40 pm

Hi qwertzu,

Thanks for the reply. I did try re-instrumenting Chrome and re-installing the plug-in, but it didn't help.

In the end I uninstalled Ranorex Studio and reinstalled all pre-requisites (Visual Studio C++ redistributables) and restarted the computer. After that it worked. It might have been that I previously was missing VC++ 2015, or it might have been something else. A reinstall solved it either way.