Mouse Clicks not working

Best practices, code snippets for common functionality, examples, and guidelines.
theraviz
Posts: 34
Joined: Sun Apr 14, 2019 9:46 am

Mouse Clicks not working

Post by theraviz » Tue Aug 20, 2019 1:44 pm

Hello,

I have an issue while executing my project. When I execute the test case, it is not performing any mouse clicks. but it is entering values in text boxes.

Also if I execute the test case only with mouse click steps, it wont click any where but in the report it says successful always.

Also this inconsistency is conditional. Sometimes (lets say in the morning) it works completely and after few executions it behaves in the above mentioned way.

If I record new it will work. Please mention some tips to make it consistent

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

Re: Mouse Clicks not working

Post by odklizec » Tue Aug 20, 2019 2:17 pm

Hi,

I'm afraid, it's impossible to suggest something reliable, without seeing the problem in action and without knowing more details about AUT and your test solution (failing code). Could you please answer below questions?...
Ranorex version? Most recent in 9.1.1. If you are using something older, please update it and try to reproduce the problem.
What kind of UI and technology you are testing (web, desktop, mobile, wpf, java, ...)?
Are you running your tests on local PC or remote VM?
Does the problem appear with recorded actions or in custom code?

Generally speaking, if your tests are running on VM, you may try to enable Turbo mode in recording modules, eventually, add "turbo-related" code manually to the code modules of your choice. I found this helpful in case of tests running on VM, where mouse often failed to click an element due to prolonged 'mouse drag' operation. Turbo mode simply eliminates all mouse movements and mouse is instantly positioned to destination element. But Turbo mode could have also some nasty side effects, so it should be used with caution. Sadly, it's impossible to tell, in which modules is turbo mode safe to use and which should stay disabled. I'm personally enabling it in frequently failing modules and only if it there are no side effects ;)
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

theraviz
Posts: 34
Joined: Sun Apr 14, 2019 9:46 am

Re: Mouse Clicks not working

Post by theraviz » Tue Aug 20, 2019 2:34 pm

Ranorex version? : 9.0.1

What kind of UI and technology you are testing : Web Application [Core banking solution]

Are you running your tests on local PC or remote VM? : Local PC

Does the problem appear with recorded actions or in custom code? : For both

And I am using 32 bit Ranorex version in 64 bit win 7 PC? Could that be a problem?

Because I read in forums that if the target application is 32 bit we can choose Ranorex 32 bit version. Please advise

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

Re: Mouse Clicks not working

Post by odklizec » Tue Aug 20, 2019 2:40 pm

Hi,

9.0.1 is somewhat old and there were done some improvements related to mouse actions in later versions. So please, update to latest 9.1.1.

Running 32bit tests on 64bit PC should not be a problem.

Have you tried to run your tests on another PC?

As mentioned before, it's hard to suggest something reliable, without seeing the problem in action and also your test suite. The last thing I could suggest is toggle "Use asynchronous dispatching of mouse and keyboard events" option (Ranorex settings >> Advanced tab) from its current state to the opposite state.
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

theraviz
Posts: 34
Joined: Sun Apr 14, 2019 9:46 am

Re: Mouse Clicks not working

Post by theraviz » Tue Aug 20, 2019 3:01 pm

Worked in 9.1.1. Thanks a lot.

Will try to perform more execution tomorrow also and will see the consistency. Thanks again :)

theraviz
Posts: 34
Joined: Sun Apr 14, 2019 9:46 am

Re: Mouse Clicks not working

Post by theraviz » Thu Aug 22, 2019 9:28 am

This happened again in the same PC with Ranorex 9.1.1 but the other PC after updating to 9.1.1 is working fine. Both are of same configuration

Win 7
64 bit

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

Re: Mouse Clicks not working

Post by odklizec » Thu Aug 22, 2019 9:29 am

Hi,

Are you sure both machines feature the same .Net and VC++ runtime libs?
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

theraviz
Posts: 34
Joined: Sun Apr 14, 2019 9:46 am

Re: Mouse Clicks not working

Post by theraviz » Thu Aug 22, 2019 9:42 am

Sorry I am new to this. Can you please suggest where to check that?

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

Re: Mouse Clicks not working

Post by odklizec » Thu Aug 22, 2019 11:07 am

Hi,

Check the list of requirements here:
https://www.ranorex.com/help/latest/ran ... uirements/

And although Ranorex is supposed to automatically install missing libs, it may be required to perform manual install/reinstall of certain libs or whole .net. Make also sure that Windows 7 are updated with SP1 and all updates and hot fixes.
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