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

Recording of right clicks - contextmenu #6

Open
jaminfine opened this issue Sep 11, 2019 · 2 comments
Open

Recording of right clicks - contextmenu #6

jaminfine opened this issue Sep 11, 2019 · 2 comments

Comments

@jaminfine
Copy link

Eventrecorder does not record the "contextmenu" event, which is triggered by right clicking on a qooxdoo widget.
So, when the test is played back, the right clicking does not happen, the context menu is never opened, and the test fails on the next step.

@cboulanger
Copy link
Owner

This would be easy to implement:

  1. Add a case "contextmenu" in cboulanger.eventrecorder.Recorder#createIntermediateCodeFromEvent() which outputs the command contexmenu with the ID of the target and a serialized version of the event data (you can only pass scalar values and object ids)
  2. Add the method cmd_contextmenu in cboulanger.eventrecorder.IPlayer and cboulanger.eventrecorder.player.Qooxdoo, taking the ID and the event data and dispatching a correct "contextmenu" event on the object with that ID.

Maybe you or @derrell might want to try? It shouldn't be very difficult.

@jaminfine
Copy link
Author

Okay, I will give it a try. Thank you for the information about where to add it

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