line-sticker-downloader icon indicating copy to clipboard operation
line-sticker-downloader copied to clipboard

"Node is either not visible or not an HTMLElement"

Open JoanneR opened this issue 1 year ago • 4 comments

When I runned it I get this error

Error: Node is either not visible or not an HTMLElement
    at ElementHandle._clickablePoint (C:\Users\Kerosene\AppData\Local\npm-cache\_npx\b4c8a2c5f7da7de6\node_modules\puppeteer\lib\ExecutionContext.js:349:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ElementHandle.click (C:\Users\Kerosene\AppData\Local\npm-cache\_npx\b4c8a2c5f7da7de6\node_modules\puppeteer\lib\ExecutionContext.js:401:20)
    at async scrapeStickerUrls (C:\Users\Kerosene\AppData\Local\npm-cache\_npx\b4c8a2c5f7da7de6\node_modules\line-sticker-downloader\index.js:43:5)
    at async downloadStickers (C:\Users\Kerosene\AppData\Local\npm-cache\_npx\b4c8a2c5f7da7de6\node_modules\line-sticker-downloader\index.js:79:18)
  -- ASYNC --
    at ElementHandle.<anonymous> (C:\Users\Kerosene\AppData\Local\npm-cache\_npx\b4c8a2c5f7da7de6\node_modules\puppeteer\lib\helper.js:144:27)
    at scrapeStickerUrls (C:\Users\Kerosene\AppData\Local\npm-cache\_npx\b4c8a2c5f7da7de6\node_modules\line-sticker-downloader\index.js:43:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async downloadStickers (C:\Users\Kerosene\AppData\Local\npm-cache\_npx\b4c8a2c5f7da7de6\node_modules\line-sticker-downloader\index.js:79:18)```

JoanneR avatar Apr 17 '23 08:04 JoanneR

same problem man

kushgo avatar Aug 11 '23 20:08 kushgo

In the file index.js: Change line 43 from; await elementHandle.click(); to; await page.evaluate((elementHandle) => { elementHandle.click(); }, elementHandle);

Wintar avatar Oct 31 '23 01:10 Wintar

In the file index.js: Change line 43 from; await elementHandle.click(); to; await page.evaluate((elementHandle) => { elementHandle.click(); }, elementHandle);

hey i tried this myself and am still getting the error unfortunately

littlelapin avatar Nov 03 '23 03:11 littlelapin

hey i tried this myself and am still getting the error unfortunately

Hm, not sure why. My install method was to install directly via the command line. (I think I ran npm install line-sticker-downloader in my folder of choice.) Not sure if that install method would fix anything. You'd also have to re-edit that line though.

Also, I have little-to-no node experience; The solution I found was a miracle after some research of the error...

Wintar avatar Nov 03 '23 12:11 Wintar