exception found when performClick with IE

Bug reports.
hobli
Posts: 57
Joined: Thu Jul 30, 2009 1:15 am

exception found when performClick with IE

Post by hobli » Wed Jun 02, 2010 7:12 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: exception found when performClick with IE

Post by Support Team » Wed Jun 02, 2010 10:33 am

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
.
Image

hobli
Posts: 57
Joined: Thu Jul 30, 2009 1:15 am

Re: exception found when performClick with IE

Post by hobli » Thu Jun 03, 2010 3:04 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: exception found when performClick with IE

Post by Support Team » Fri Jun 04, 2010 10:32 am

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
.
Image

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: exception found when performClick with IE

Post by Support Team » Mon Jun 07, 2010 11:06 am

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
.
Image

hobli
Posts: 57
Joined: Thu Jul 30, 2009 1:15 am

Re: exception found when performClick with IE

Post by hobli » Thu Jun 10, 2010 9:55 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: exception found when performClick with IE

Post by Support Team » Thu Jun 10, 2010 10:03 am

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
.
Image

hobli
Posts: 57
Joined: Thu Jul 30, 2009 1:15 am

Re: exception found when performClick with IE

Post by hobli » Tue Jul 06, 2010 3:34 am

hi,

this is to confirm bug fixed in ranorex 2.3.2.

thanks