Giter Club home page Giter Club logo

ghost-cursor-playwright's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ghost-cursor-playwright's Issues

Failed to set the 'innerHTML' property on 'Element'

node:internal/process/promises:289
            triggerUncaughtException(err, true /* fromPromise */);
            ^

page.evaluate: TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.
    at eval (eval at evaluate (:226:30), <anonymous>:4:36)
    at UtilityScript.evaluate (<anonymous>:228:17)
    at UtilityScript.<anonymous> (<anonymous>:1:44)
    at Page.<anonymous> (E:\Projects\Personal\botting\top-results-mon\node_modules\ghost-cursor-playwright\lib\mouse-helper.js:5:20)

Node.js v20.9.0

I need to sign in to Google but it fails to inject the cursor on Google's sign in page and raises this error. Worked fine on pages before this like Google Search.

Mouse movements are immediate

Hey there @reaz1995, thanks for the development effort first of all.

Isn't the cursor on the Page supposed to move with a relatively slow speed with a curve path, and slow down before it reaches the target, as a human would do?
When I execute page.cursor.actions.move(locatorName) I don't see a trajectory at all, I just see the cursor immediately teleporting to the selected element as if my screen is a touch device rather than a desktop with a mouse and a human just tapped it in the right place with a finger.

Do I need to set an additional option to move or something?

installMouseHelper error

I has an issue when i using to click a button in google.com
page.evaluate
: TypeError: Failed to set the 'innerHTML' property on 'Elem
ent': This document requires 'TrustedHTML' assignment.
[1] at eval (eval at evaluate (:201:30), :4:3
6)
[1] at UtilityScript.evaluate (:203:17)
[1] at UtilityScript. (:1:44)
[1] at Page. (...\node_modules\ghost-cursor-playwright\lib\mouse-helper.js:5:20)

Crash after click submit form

Hi, after clicking on a submit button, ghost cursor crashes.
Here is the error in question:
image

even in a try catch, it stops my node which is very annoying.
if there are solutions so that it doesn't crash anymore, I'm interested

TypeError: createCursor is not a function

const playwright = require('playwright')
const createCursor = require('ghost-cursor-playwright');
let browser = await playwright.firefox.launch({
headless: false
});
const context = await browser.newContext(
{
}
);
const page = await context.newPage();
const cursor = await createCursor(page);

Issue: createCursor is not a function when trying to use this package. Any idea why I am getting this error?

Impossible to turn off debug

Because || is used to default debug to true on line 24 of cursor.ts, it can never be set to false. Using ?? instead will resolve this. Similarly overshootSpread and overshootRadius can never be set to 0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.