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

Sending X and Y to mouse pressed #111

Open
anton-kulagin opened this issue Mar 23, 2018 · 0 comments
Open

Sending X and Y to mouse pressed #111

anton-kulagin opened this issue Mar 23, 2018 · 0 comments

Comments

@anton-kulagin
Copy link

Could you help me with sending X and Y to mousePressed method. i want get it by rect and saved to variables or send in chain to next method(in my case mousePressed)
How can i do it with predefine X and Y

        .wait(mousePressedSelector)
        .mousePressed(200,200)

How i want do it

var tempRect = {};
chromy
  .wait(mousePressedSelector)
  .rect(mousePressedSelector)
  .result(function(rect){
      tempRect =rect
   })
   .mousePressed(tempRect.left,tempRect.right)

And when it run mousePressed my chrome closed and looks like it do not apply.

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

1 participant