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

[Feature] Add a way to include x/y coordinates during codegen #6737

Closed
targos opened this issue May 25, 2021 · 1 comment · Fixed by #9503
Closed

[Feature] Add a way to include x/y coordinates during codegen #6737

targos opened this issue May 25, 2021 · 1 comment · Fixed by #9503

Comments

@targos
Copy link

targos commented May 25, 2021

When testing canvas interactions (such as clicking on a virtual button visible in a 2D canvas), it is necessary to include a precise cursor position. For example:

await page.click('canvas', {
  position: {
    x: 50,
    y: 100
  }
});

It would be very useful for that if the codegen feature was able to optionally add the position to the generated code.
Currently, I think there is no way to do it, and the click always happens in the middle of the canvas element.

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

Successfully merging a pull request may close this issue.

3 participants