Skip to content

Import doesn't work anymore #11

@metaodi

Description

@metaodi

My script to import files in roam uses this library, since a couple of days there is an error:

ERROR occured:  Error: Node is either not visible or not an HTMLElement
    at ElementHandle._clickablePoint (/home/runner/work/road-to-roam/road-to-roam/node_modules/puppeteer/lib/cjs/puppeteer/common/JSHandle.js:329:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async ElementHandle.click (/home/runner/work/road-to-roam/road-to-roam/node_modules/puppeteer/lib/cjs/puppeteer/common/JSHandle.js:390:26)
    at async DOMWorld.click (/home/runner/work/road-to-roam/road-to-roam/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:277:9)
    at async RoamPrivateApi.import (/home/runner/work/road-to-roam/road-to-roam/node_modules/roam-research-private-api/RoamPrivateApi.js:233:3)

The error occurs here (line 233):

// Sets the value of the file input to fileToUpload
inputUploadHandle.uploadFile( fileName );
await this.page.waitForSelector( '.bp3-dialog .bp3-intent-primary' );
await this.page.click( '.bp3-dialog .bp3-intent-primary' );
await this.page.waitForTimeout( 3000 );
await this.removeImportBlockFromDailyNote();
return;

At first glance I couldn't find anything, since in Roam the class names didn't change (as far as I can tell). Not sure what the problem is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions