Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Import doesn't work anymore #11

Open
metaodi opened this issue Apr 13, 2021 · 0 comments · May be fixed by #12
Open

Import doesn't work anymore #11

metaodi opened this issue Apr 13, 2021 · 0 comments · May be fixed by #12

Comments

@metaodi
Copy link

metaodi commented Apr 13, 2021

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant