Mouse Triple Click

Ask general questions here.
doke
Posts: 15
Joined: Fri Mar 29, 2019 2:33 pm

Mouse Triple Click

Post by doke » Fri Apr 02, 2021 4:26 pm

Hi All,
Our website supports triple click action on certain elements.

Do you have a way to emulate this with ranorex?

Regards,

Don

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 23
Joined: Mon Dec 07, 2020 6:30 pm

Re: Mouse Triple Click

Post by tmcdoniel » Fri Apr 02, 2021 7:41 pm

Ranorex actions supports single and double clicks. However you might be able to add this functionality as required via C# code. See this link for a coding example. https://stackoverflow.com/questions/501 ... click-in-c
Sales Engineer @ Ranorex

Roger2021
Posts: 1
Joined: Thu Apr 01, 2021 6:39 am

Re: Mouse Triple Click

Post by Roger2021 » Mon Apr 05, 2021 11:13 am

What is that i tried to click triple but nothing is happen please elaborate a little bit more about this function.

doke
Posts: 15
Joined: Fri Mar 29, 2019 2:33 pm

Re: Mouse Triple Click

Post by doke » Tue Apr 06, 2021 6:51 pm

@tmcdoniel, Your link provides code for handling triple click by application. nOt generating a triple click.
@Roger2021, some web elements ( bus also ms-word) support a triple click.
example:
-single click selects element
-double click selects selected word from element
-triple click selects all content of element

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

Re: Mouse Triple Click

Post by odklizec » Wed Apr 07, 2021 10:04 am

Hi Don,

I know what you mean. You can achieve mouse triple click by code like this:

Code: Select all

public void StoreDataTest(Adapter elementToClick)
    {
    // 1st param. is repo element you want to click
    // 2nd param. is mouse button
    // 3rd param. number of clicks
    // 4th param. is delay between clicks
        Mouse.Click(elementToClick,System.Windows.Forms.MouseButtons.Left,3,100); 
    }
Hope this helps? ;)
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