simonradier / node-red-contrib-simple-webdriver

SimpleWebdriver nodes for Node-RED initially based on node-red-contrib-selenium-wd2
Apache License 2.0
14 stars 7 forks source link

Since 0.2.2 Release, "Can't open an instance of chrome" #30

Closed iproud closed 1 year ago

iproud commented 1 year ago

Since the 0.2.2 Release the Open Browser Node fails with following error: {"message":"ReferenceError: Blob is not defined","source":{"id":"c50c7b6367693c29","type":"open browser","count":1},"stack":"ReferenceError: Blob is not defined\n at /data/node_modules/@critik/simple-webdriver/dist/utils/http-client.js:38:57\n at new Promise ()\n at Object.call (/data/node_modules/@critik/simple-webdriver/dist/utils/http-client.js:33:12)\n at Object.call (/data/node_modules/@critik/simple-webdriver/dist/api.js:36:39)\n at WebDriver.start (/data/node_modules/@critik/simple-webdriver/dist/webdriver.js:383:34)\n at NodeOpenBrowserConstructor._inputCallback (/data/node_modules/node-red-contrib-simple-webdriver/dist/nodes/open-browser.js:47:40)\n at /usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:210:26\n at Object.trigger (/usr/src/node-red/node_modules/@node-red/util/lib/hooks.js:166:13)\n at NodeOpenBrowserConstructor.Node._emitInput (/usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:202:11)\n at NodeOpenBrowserConstructor.Node.emit (/usr/src/node-red/node_modules/@node-red/runtime/lib/nodes/Node.js:186:25)"}

simonradier commented 1 year ago

Hello @iproud,

Could you share with me your node version plz?

Best regards,

iproud commented 1 year ago

Node-Red verson 3.0.2 node-red-contrib-simple-webdriver 0.2.2

What's really weird is that I ran a fresh Node-Red install on a new docker container and manually installed the the 0.2.1 release and it is giving the same error.

simonradier commented 1 year ago

It was a bug on a dependencies. Could you try to do a clean install again. It should work now.

iproud commented 1 year ago

Spot on! That fixed it!

simonradier commented 1 year ago

Great. Please remember that it is still beta and may have issues in next release. I'll take care to check two latest nodejs LTS version (you are using I think a nodejs <18).

If it is ok. I let you close the issue.

iproud commented 1 year ago

Perfect! Always happy to help out with any testing. Happy to close this now