Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[windows: clickAndDrag] could you please give another "durationMs" to this function #233

Open
pppppino opened this issue Dec 27, 2023 · 5 comments

Comments

@pppppino
Copy link

Hi,

In function [windows: clickAndDrag], you only provide the wait time between pressing the left mouse button and moving the cursor to the ending drag point.

However, I want to have a wait time between moving the cursor to the ending drag point and release mouse., which means you may need add a delay between below code

 toMouseMoveInput({x: endAbsoluteX, y: endAbsoluteY}, screenSize),
 toMouseButtonInput({button: MOUSE_BUTTON.LEFT, action: MOUSE_BUTTON_ACTION.UP}),

otherwise, I can not use it in my test cases automation.

thanks a lot

@mykola-mokhnach
Copy link

You are welcome to propose a PR. It should not be too complicated to add such feature. You could also test it locally properly.

@pppppino
Copy link
Author

@mykola-mokhnach , Thanks, I will test it once you add this params to this function

@mykola-mokhnach
Copy link

I mean you can try to change the source code yourself.

@pppppino
Copy link
Author

pppppino commented Dec 28, 2023

@mykola-mokhnach , My JS is so poor, but I will have a try on it;
Could you kindly tell me how to package your source code to driver package in my local machine?

@mykola-mokhnach
Copy link

@mykola-mokhnach , My JS is so poor, but I will have a try on it; Could you kindly tell me how to package your source code to driver package in my local machine?

Something similar to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants