Created attachment 824500 [details] Run tests with cursor Hi all, We could show a cursor when user runs tests to let user know where does the runner click on the screen. Please see the demo in the video. And the repository is in https://github.com/evanxd/marionette-marker. It should be useful for debugging the test code. How do you guys think?
Cool! Now do it with multiple touch events ;)
Hi James, Actually, not yet. But we could to that. It just only hook click event currently. And we could let it mark a element selected with client.findElement('css-selector').
Oh, I just missed your idea. I mean that yes we could to that.
Misunderstood the idea.
Agh the video isn't loading quite right for me... must go find plugin
Nice idea, Evan! One minor detail: if two click events are scripted for the same location on screen, it's difficult to tell when/if the second has occurred. Do you think you could somehow animate the overlay to communicate taps/clicks? For instance, it might be even more useful if the overlay gradually faded out over time. (I'm not sure how you've done this, so I don't know if this is technically possible.)
Hi all, BTW, I think the desktop-client doesn't support multiple touch, right? So we will not have multiple touch test case run in desktop-client?
Hi Mike, What I do for cursor thing is add a div element in a App, and listen the click events to show the cursor div on the screen. You could see the logic in https://github.com/evanxd/marionette-marker/blob/master/index.js#L76. And I'm just wondering that do we have time to show to user the overlay animate if the click events in tests run so fast like the video.
Actually, the test will run more fast. In the video, I set 300ms sleep for each click.
Bulk closed as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1422750
Status: NEW → RESOLVED
Last Resolved: 5 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.