Ask coding questions

← Back to all posts
Selenium with node.js
LOLzzz (0)

I tried to follow a tutorial on selenium with node.js but the code didn't work on repl.it, it gives an error

Error: The geckodriver executable could not be found on the current PATH. Please download the latest version from https://github.com/mozilla/geckodriver/releases/ and ensure it can be found on your PATH.

How do I fix this? Thanks.

Answered by Coder100 (17026) [earned 5 cycles]
View Answer
Comments
hotnewtop
LOLzzz (0)

@Coder100 I am having trouble trying to log into a site using puppeteer. It can't seem to find the Id #welcome_username
Here's the link to the code https://repl.it/@LOLzzz/This-time-we-are-getting-puppeteer#index.js
And here is a link to the site I am trying to log into: https://www.kongregate.com/games/Tacticsoft/supermechs?room_id=45720

How do I fix it?

Coder100 (17026)

hmm i'll have a look later @LOLzzz

Coder100 (17026)

node doesn't support puppeteer/selenium right out of the box, you must use a middle man like bash