Incorrrect mouse movements,cause Wrong elements being clickd
Posted: Wed Dec 29, 2010 8:48 pm
Incorrrect mouse movements,cause Wrong elements being clickd
Scenario:
- Start Notepad
- Type some text
- Click File
- Click New
To reproduce bug either:
- Modify CLICK events location to CENTER.
- or during recording click on right side of NEW menu entry
Can't replay it in Ranorex. See attached project.
Reason for that is that "Click" method called on FILE menu with Location.Center and than same method called on NEW menu with Location.Center. However, during mouse movement from FILE location to NEW location, it goes over EDIT menu, and activates it. So, wrong menu entry clicked.
Not sure, what proper solution is.
Obvious work-around is not to use Location.Center, but to use Location.CenterLeft...
I suggest, that MENU clicks recorded with Center.Left location by default (overriding user click position). That will guarantee, that it will correctly replayed. There is no reason to save real click position for MENU clicks.
Scenario:
- Start Notepad
- Type some text
- Click File
- Click New
To reproduce bug either:
- Modify CLICK events location to CENTER.
- or during recording click on right side of NEW menu entry
Can't replay it in Ranorex. See attached project.
Reason for that is that "Click" method called on FILE menu with Location.Center and than same method called on NEW menu with Location.Center. However, during mouse movement from FILE location to NEW location, it goes over EDIT menu, and activates it. So, wrong menu entry clicked.
Not sure, what proper solution is.
Obvious work-around is not to use Location.Center, but to use Location.CenterLeft...
I suggest, that MENU clicks recorded with Center.Left location by default (overriding user click position). That will guarantee, that it will correctly replayed. There is no reason to save real click position for MENU clicks.