Skip to content

Sending X and Y to mouse pressed #111

@anton-kulagin

Description

@anton-kulagin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions