Page 1 of 1

Exception found when performClick with Firefox 45.2.0

Posted: Mon Jul 18, 2016 10:29 am
by archanajagdale
Hi,
Whenever I run below code on VM machine .It throws an exception "Action 'performclick' failed on element '{TdTag:Test}" .

Test.EnsureVisible();
Test.Focus();
Test.PerformClick();

"Action 'performclick' failed on element '{TdTag:Test}'.

I am using Ranorex 6.0 Mozilla Firefox 45.2.0, Windows 7 Professional SP1.

Is this a bug?


Thanks,
Archana

Re: Exception found when performClick with Firefox 45.2.0

Posted: Tue Jul 19, 2016 7:33 am
by odklizec
Hi,

I'm not aware of any such problem with PerformClick? Have you tried to use Click() instead of PerformClick()? PerformClick is generally not recommended to use, because it may not trigger "onmouse" events attached to the clicked element. If Click works OK, use it instead of PerformClick.

BTW, could you please post a HTML sample (e.g. using http://www.w3schools.com), in which we can test your code? If the problem is only reproducible with your HTML (and not HTML table in general), it would be nice to see the problematic piece of code.

Re: Exception found when performClick with Firefox 45.2.0

Posted: Tue Jul 19, 2016 11:54 am
by archanajagdale
I tried below solutions but, still getting the same exception as above:-

1. By adding two more properties--EnsureVisible(),Focus() for TdTag.
2. By creating Ranorex.core.element and convert it to WebElement.
3. By using Click() method.

Re: Exception found when performClick with Firefox 45.2.0

Posted: Tue Jul 19, 2016 12:00 pm
by odklizec
Hi,

As mentioned in my previous post, please post an HTML sample code with which we can reproduce the issue.