Hi,
Is there a way to perform doubleClick or mouse move like the method button.PerformClick() without seeing the mouse?
Thanks.
Perform Mouse DoubleClick, Move
Re: Perform Mouse DoubleClick, Move
Hi,
If you mean you do not want to see mouse movement between the actions, then the solution is to enable “Turbo” mode, who eliminates all delays, except the manually added delays.
If you mean you do not want to see mouse movement between the actions, then the solution is to enable “Turbo” mode, who eliminates all delays, except the manually added delays.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Perform Mouse DoubleClick, Move
i mean is there a fonction like performclick() for doubleclick or mouse move, because sometimes the double click and click don't work when the delay between two actions is not enough.
Re: Perform Mouse DoubleClick, Move
Hi,
No, there is no equivalent of performclick for double click. But honestly, I’m hard to see how such action would help wit your problem? In fact, there is a big chance performclick will fail, especially in web-based apps, because it does not trigger onmouse events. Hence PerformClick action should be used in caution and normal click is preferred. In my opinion, you simply need to optimize your test. Find what’s the cause of missed clicks (it may very well be caused by Remote Desktop connection) and solve it by adding waitfor actions or delays at problematic places.
No, there is no equivalent of performclick for double click. But honestly, I’m hard to see how such action would help wit your problem? In fact, there is a big chance performclick will fail, especially in web-based apps, because it does not trigger onmouse events. Hence PerformClick action should be used in caution and normal click is preferred. In my opinion, you simply need to optimize your test. Find what’s the cause of missed clicks (it may very well be caused by Remote Desktop connection) and solve it by adding waitfor actions or delays at problematic places.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Perform Mouse DoubleClick, Move
Thank you for your response, effectively i think that the problem is because i'm writing the tests in Remote Desktop Connection , for the moment the method performClick work well.
I have two more question if you can help me,
1) in my application i would verify that an object apear in a geographic map when i click in a button, the probleme is that the symbol of the object can be changed by a user this is the reason why i can not use the Image based test. can you suggest me another solution? or can i do the the image based dynamically for example verify the symbol of an object and use the image based according to the symbol selected by a user?
2) for my tests i'm using Remote Desktop connection , the problem is that the RDC (remote desktop connection) lock every one hour, and i don't have control on this machine, how can i ensure that the tests will continue when the RDC will lock?
Thank you
I have two more question if you can help me,
1) in my application i would verify that an object apear in a geographic map when i click in a button, the probleme is that the symbol of the object can be changed by a user this is the reason why i can not use the Image based test. can you suggest me another solution? or can i do the the image based dynamically for example verify the symbol of an object and use the image based according to the symbol selected by a user?
2) for my tests i'm using Remote Desktop connection , the problem is that the RDC (remote desktop connection) lock every one hour, and i don't have control on this machine, how can i ensure that the tests will continue when the RDC will lock?
Thank you
Re: Perform Mouse DoubleClick, Move
Hi,oualiSAI wrote:Thank you for your response, effectively i think that the problem is because i'm writing the tests in Remote Desktop Connection , for the moment the method performClick work well.
I have two more question if you can help me,
1) in my application i would verify that an object apear in a geographic map when i click in a button, the probleme is that the symbol of the object can be changed by a user this is the reason why i can not use the Image based test. can you suggest me another solution? or can i do the the image based dynamically for example verify the symbol of an object and use the image based according to the symbol selected by a user?
2) for my tests i'm using Remote Desktop connection , the problem is that the RDC (remote desktop connection) lock every one hour, and i don't have control on this machine, how can i ensure that the tests will continue when the RDC will lock?
Thank you
Well, MS RD is hell for TA It's better to use something else, like VNC, which stays connected (unlike RD), even if the VNC window is minimized or closed. I'm not using screenshot-based automation much, so I can't answer your first question. I believe it should be possible to load a custom image from code? Try to search this form. I think it was discussed in the past.
As for your second question, as mentioned, RD must remain open. Minimized, closed or locked desktop will result in non-functional test, because Ranorex requires realized desktop to be able to track elements. So you must either make sure thatRD is active and unlocked, or stay away form RD and use something like VNC, which stays connected, even with minimized/closed VNC window.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Perform Mouse DoubleClick, Move
hello,
the problem is that i have no choise, i have to use RD, what do you think if i install a virtual machine inside the RD, to ensure that when the RD is locked the tests will continue to work?
the problem is that i have no choise, i have to use RD, what do you think if i install a virtual machine inside the RD, to ensure that when the RD is locked the tests will continue to work?
Re: Perform Mouse DoubleClick, Move
I'm afraid, Ranorex cannot work with locked desktop. You must ensure that the machine, where your test runs, is unlocked during the time of test. Ranorex (any UI test automation tool) is not able to recognize UI elements on locked desktop.
Check for example this post:
https://www.ranorex.com/forum/run-tests ... tml#p44803
Check for example this post:
https://www.ranorex.com/forum/run-tests ... tml#p44803
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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