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

How can i see the trace of mouse? #17

Closed
alanzed555 opened this issue Jan 1, 2021 · 2 comments
Closed

How can i see the trace of mouse? #17

alanzed555 opened this issue Jan 1, 2021 · 2 comments

Comments

@alanzed555
Copy link

I want to see the trace of mousemove.How can i do?
thank u.

@Niek
Copy link
Collaborator

Niek commented Jan 6, 2021

Here's some sample code:

const { createCursor, getRandomPagePoint, installMouseHelper } = require('ghost-cursor');

const cursor = createCursor(page, await getRandomPagePoint(page), true);
await installMouseHelper(page); // this shows the trace
await cursor.click('element', { waitForMouse: 10000, waitForSelector: 1000, paddingPercentage: 20 });

@Niek Niek closed this as completed Jan 6, 2021
@alanzed555
Copy link
Author

Here's some sample code:

const { createCursor, getRandomPagePoint, installMouseHelper } = require('ghost-cursor');

const cursor = createCursor(page, await getRandomPagePoint(page), true);
await installMouseHelper(page); // this shows the trace
await cursor.click('element', { waitForMouse: 10000, waitForSelector: 1000, paddingPercentage: 20 });

thank u!

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