Button LongClicks on Winforms application?
Posted: Fri Jun 09, 2017 2:43 am
Hi all,
We're using Ranorex with a legacy application. We don't have access to the source code of the application, so this is a black box situation.
The problem we're having is:
(1) .Click() does click a button
(2) when a human clicks the button, a pop-up window appears offering further choices BUT
(3) when Ranorex clicks the button, the same pop-up DOES NOT appear.
I'm currently working on the assumption that the mouse click as performed by a human is longer than Ranorex's .Click(), and that something in the application separately detects that the mouse button is still held down.
(any other hypotheses welcome!)
btn.Click() doesn't offer the opportunity to control how long the button is held down, so I'm finding my hypothesis hard to test.
Two questions:
(1) how long does .Click() hold down the mouse button?
(2) is there any way to customize .Click() so that I have control over the MouseDown period?
This looks likely to happen in different parts of the app, so I'm willing to change a global config if this will help.
I have tried many different ways of activating the button press, including moving focus and pressing Space, waiting after receiving focus, pressing Enter with focus.
The problem may also be to do with containers and tab order (or lack of it.)
Thanks,
Nick
Versions:
Ranorex 7.0.0
C# 6 (Visual Studio 2015)
Legacy application written in: Java Swing
We're using Ranorex with a legacy application. We don't have access to the source code of the application, so this is a black box situation.
The problem we're having is:
(1) .Click() does click a button
(2) when a human clicks the button, a pop-up window appears offering further choices BUT
(3) when Ranorex clicks the button, the same pop-up DOES NOT appear.
I'm currently working on the assumption that the mouse click as performed by a human is longer than Ranorex's .Click(), and that something in the application separately detects that the mouse button is still held down.
(any other hypotheses welcome!)
btn.Click() doesn't offer the opportunity to control how long the button is held down, so I'm finding my hypothesis hard to test.
Two questions:
(1) how long does .Click() hold down the mouse button?
(2) is there any way to customize .Click() so that I have control over the MouseDown period?
This looks likely to happen in different parts of the app, so I'm willing to change a global config if this will help.
I have tried many different ways of activating the button press, including moving focus and pressing Space, waiting after receiving focus, pressing Enter with focus.
The problem may also be to do with containers and tab order (or lack of it.)
Thanks,
Nick
Versions:
Ranorex 7.0.0
C# 6 (Visual Studio 2015)
Legacy application written in: Java Swing