Page 1 of 1

Clicking problems (HTML)

Posted: Tue Sep 27, 2016 1:58 pm
by giuseppe.lacagnina
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!!!

Re: Clicking problems (HTML)

Posted: Tue Sep 27, 2016 7:34 pm
by N612
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

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 7:55 am
by giuseppe.lacagnina
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...

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 8:12 am
by odklizec
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.

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 8:15 am
by giuseppe.lacagnina
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.

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 8:21 am
by odklizec
OK, then it's probably an opposite problem. Have you tried to increase the "Duration" value for failing mouse click action?

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 8:26 am
by giuseppe.lacagnina
I will try today. Makes perfect sense! Thanks!

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 9:02 am
by giuseppe.lacagnina
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!!!

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 9:09 am
by odklizec
You are welcome! Nice to hear it helped ;)

Re: Clicking problems (HTML)

Posted: Wed Sep 28, 2016 9:13 am
by giuseppe.lacagnina
Not only it helped, I also learnt something new which will be useful in other test cases :D
Thanks again!