Exception found when performClick with Firefox 45.2.0

Ask general questions here.
archanajagdale
Posts: 2
Joined: Mon Jul 18, 2016 10:12 am

Exception found when performClick with Firefox 45.2.0

Post by archanajagdale » Mon Jul 18, 2016 10:29 am

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
Last edited by archanajagdale on Tue Jul 19, 2016 11:55 am, edited 1 time in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3908
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Exception found when performClick with Firefox 45.2.0

Post by odklizec » Tue Jul 19, 2016 7:33 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

archanajagdale
Posts: 2
Joined: Mon Jul 18, 2016 10:12 am

Re: Exception found when performClick with Firefox 45.2.0

Post by archanajagdale » Tue Jul 19, 2016 11:54 am

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3908
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Exception found when performClick with Firefox 45.2.0

Post by odklizec » Tue Jul 19, 2016 12:00 pm

Hi,

As mentioned in my previous post, please post an HTML sample code with which we can reproduce the issue.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration