svaze74
11 years agoContributor
Can we customize the speed of mouse click in testcomplete
Hi,
Sometimes the mouse click operation appears to happen successfully but the expected result does not occur during automated test run.
When clicking on button manually, the expected result is correct.
So my doubt is, while it appears on screen during automated run that the button is clicked but its not clicking it properly or at all.
To achieve this, may be speed of mouse click needs to be adjusted. Can this be achieved in testcomplete?
Thanks,
Shrirang
Sometimes the mouse click operation appears to happen successfully but the expected result does not occur during automated test run.
When clicking on button manually, the expected result is correct.
So my doubt is, while it appears on screen during automated run that the button is clicked but its not clicking it properly or at all.
To achieve this, may be speed of mouse click needs to be adjusted. Can this be achieved in testcomplete?
Thanks,
Shrirang
- Hi Shrirang,
No, according to my knowledge, the speed of the mouse click is not parametarizable.
But you can use the LLPlayer object and create your custom function that will press left mouse button at some screen point (you will need to convert coordinates from object-based to screen-based), wait for some time (this will be your parameter) and release the pressed button.
Does this help?