Clicking problems (HTML)

Ask general questions here.
User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Clicking problems (HTML)

Post by giuseppe.lacagnina » Tue Sep 27, 2016 1:58 pm

Dear All,

I have the following problem. A test of mine (HTML) clicks an element from a table inside a web page. On my computer it works fine.

My computer is running Windows 7 and Ranorex Studio 5.4.4 (for now, I cannot update). The tests run on IE 11.

I also need to run this test case remotely on a virtual machine with "Windows Server 2008 R2 Standard" and IE 11.

What I see is that the same test fails on the virtual machine. The item to be clicked is correctly identified but the click is not really performed. If I add a second click, it works: meaning that there is a single click out of two. I have a solution, but I do not like it: the second click is unnecessary and could even be wrong.

Unfortunately, I cannot provide a snapshot, but maybe someone had a similar problem. The two things that make me wonder are: running remotely to a VM, and the Windows Server OS on said machine. Or could it be some delay in the screen refresh, since it is a remote desktop connection?

Can anyone help?

Thanks!!!

User avatar
N612
Posts: 62
Joined: Mon Jul 11, 2016 4:01 pm

Re: Clicking problems (HTML)

Post by N612 » Tue Sep 27, 2016 7:34 pm

Here are a few things you can try that have helped me execute test on remote machines:
  • Enable asynchronous dispatching (Global Settings > Advance)
  • Perform a mouse move to the element prior to the mouse click
  • Disable the root repository item's cache (Right click root repo item > Properties > Use Cache = False)
  • Disable 'Use Ensure Visible' on the repository item (Right click repo item > Properties > Use Ensure Visibile = False)
  • Try a different remote desktop, such as VNC
  • Upgrade to 6.0+ to use the new Ranorex Agent

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: Clicking problems (HTML)

Post by giuseppe.lacagnina » Wed Sep 28, 2016 7:55 am

Thanks!

I had already tried to move to the item, but it did not work.
The solution I have so far is that of doing an extra click to another element of the page before clicking on the one I need. It works and it is no so bad, since the intermediate click has no side effects.

I will also try the other suggestions, especially the one about the cache.

Let us se...

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

Re: Clicking problems (HTML)

Post by odklizec » Wed Sep 28, 2016 8:12 am

Hi,

Tell me, before the problem happens, do you see an effect as if anything under the mouse is selected? I mean as if the mouse button is clicked and held and dragged across the web page and anything under the mouse is selected? I'm asking, because I've experienced problem like this as well. What actually helped was reducing the mouse move time to '0' and eventually enabling the Turbo Mode in problematic recording modules.
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

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: Clicking problems (HTML)

Post by giuseppe.lacagnina » Wed Sep 28, 2016 8:15 am

Not really. I see that the mouse movement is quite jerky, as if it were trying to click in a time that is actually too short.

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

Re: Clicking problems (HTML)

Post by odklizec » Wed Sep 28, 2016 8:21 am

OK, then it's probably an opposite problem. Have you tried to increase the "Duration" value for failing mouse click action?
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

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: Clicking problems (HTML)

Post by giuseppe.lacagnina » Wed Sep 28, 2016 8:26 am

I will try today. Makes perfect sense! Thanks!

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: Clicking problems (HTML)

Post by giuseppe.lacagnina » Wed Sep 28, 2016 9:02 am

odklizec wrote:OK, then it's probably an opposite problem. Have you tried to increase the "Duration" value for failing mouse click action?
Thanks!!! This worked perfectly!!!

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

Re: Clicking problems (HTML)

Post by odklizec » Wed Sep 28, 2016 9:09 am

You are welcome! Nice to hear it helped ;)
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

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: Clicking problems (HTML)

Post by giuseppe.lacagnina » Wed Sep 28, 2016 9:13 am

Not only it helped, I also learnt something new which will be useful in other test cases :D
Thanks again!