Page 1 of 1

exception found when performClick with IE

Posted: Wed Jun 02, 2010 7:12 am
by hobli
Hi,

I would to use the following code to do a link click with IE browser (IE7.0):

Code: Select all

Dim myDoc As WebDocument = "/dom[@caption='tt']"
Dim myLink As ATag = myDoc.FindSingle(".//a[@id='linkid']")
myDoc.EnsureVisible()
myLink.Focus()
myLink.Performclick()
Exception Found:
Ranorex.ActionFailedException: Action 'performclick' failed on element '{ATag:linkid}'. ---> System.Runtime.InteropServices.COMException (0x8001010D): An outgoing call cannot be made since the application is dispatching an input-synchronous call. (Exception from HRESULT: 0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL))

With the same code, FireFox 3.6.3 is working properly.

I have attached the html for your to reproduce. I am using Ranorex 2.3.1, winXP SP3.

Is this a bug?

thanks

Re: exception found when performClick with IE

Posted: Wed Jun 02, 2010 10:33 am
by Support Team
Hi,

One question to restrict the problem.
Are you using the IE Add-on or is it disabled in your browser?
You can check it in Manage Add-Ons Dialog.

Regards,
Peter
Ranorex Support Team

Re: exception found when performClick with IE

Posted: Thu Jun 03, 2010 3:04 am
by hobli
Hi,

The Ranorex add-on for IE is enabled. Actually, if I change the 'target' attribute of the link to '_self', performClick() will work. But for others like "_blank" will encounter this failure.

Re: exception found when performClick with IE

Posted: Fri Jun 04, 2010 10:32 am
by Support Team
Hi,

I can't reproduce your issue, but after research I found following article about your COM Exception
http://support.microsoft.com/?scid=kb%3 ... 6&x=14&y=8
We will check this in code and inform you about the outcome.

Regards,
Peter
Ranorex Support Team

Re: exception found when performClick with IE

Posted: Mon Jun 07, 2010 11:06 am
by Support Team
Hi,

We were able to reproduce the COM Exception and we found the bug. The bug will be released in the next version of Ranorex. As workaround just disable the IE Add-In, because the bug is nested in this Add-In.

Thanks for posting the bug.

Regards,
Peter
Ranorex Support Team

Re: exception found when performClick with IE

Posted: Thu Jun 10, 2010 9:55 am
by hobli
Hi, Ranorex team,

thanks for your answer. I tried to disable the IE plugin, the performClick() works. As I am implementing other
functions to access IE, I am not sure the impact with the IE plugin-disabled. Could you please provide me with more information on the impact on disabling the IE plugin (e.g, what are the ranorex functions maybe behave improperly with IE plugin disable?)

thanks a lot

Re: exception found when performClick with IE

Posted: Thu Jun 10, 2010 10:03 am
by Support Team
Hi,
hobli wrote:what are the ranorex functions maybe behave improperly with IE plugin disable?
The IE-Add-on is only for performance. If you disable this Add-on it can be possible that tracking or searching of an element take longer time. But there is no limitation with object recognition.

Regards,
Peter
Ranorex Support Team

Re: exception found when performClick with IE

Posted: Tue Jul 06, 2010 3:34 am
by hobli
hi,

this is to confirm bug fixed in ranorex 2.3.2.

thanks