Question
Issue in Perform Click in Web Adapter
Automation is stuck or Hang after performing a 'perform Click' in a Web Adapter and no exception message is triggered in TRY-CATCH. This happens once in a while.
Only after manually closing the Webpage in Task Manager, Exception message is sent out as email. Until manually closing the Automation is stuck even for hours.
Below is the Error message that we receive for the exception.
System.InvalidCastException: Unable to cast COM object of type 'mshtml.HTMLAnchorElementClass' to interface type 'mshtml.IHTMLElement'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3050F1FF-98B5-11CF-BB82-00AA00BDCE0B}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).
at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at mshtml.HTMLAnchorElementClass.IHTMLElement_click()
at OpenSpan.Adapters.Web.Wrappers.HtmlElementWrapper.click()
at OpenSpan.Adapters.Web.HtmlElement.PerformClick()
at OpenSpan.Adapters.Web.Controls.WebControl.PerformClick()
This one might require hands on to assist. You can open a support case to get someone to look at this with you. In the interim, I would look to see if you have any indication that the link has been matched or unmatched recently (relative to when you call PerformClick). The exception you posted may be related or it may be benign as it is an adapter exception.