-
Notifications
You must be signed in to change notification settings - Fork 120
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
Overhaul documentation #13
Comments
Sample TS code: import * as puppeteer from 'puppeteer'
import { createCursor, getRandomPagePoint, installMouseHelper } from 'ghost-cursor'
(async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
const cursor = createCursor(page, await getRandomPagePoint(page), true)
await installMouseHelper(page) // this shows the trace
page.goto('https://www.example.com/')
await cursor.click('element', { waitForClick: 10000, waitForSelector: 1000, paddingPercentage: 20 })
})() |
@Niek how can the speed of the mouse movement be set? |
This can be changed in the |
I'd like to add an item to the list:
|
I generated some docs with ChatGPT, wanna see what you'll think :) |
Fixed in #116 |
The README needs some updating to reflect the changes in the code recently:
installMouseHelper
createCursor
move
andclick
moveTo
andgetRandomPagePoint
Anybody who's willing to check this?
The text was updated successfully, but these errors were encountered: