No such file or directory when using Selenium

I'm trying to use Selenium to scrape a site but it seems the actor can't locate chrome. Do I need to add chrome and chromedriver to the actor itself or is there a path to chrome within Apify? Thanks in advance.
2023-02-08T15:14:10.155Z FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/chrome'
2023-02-08T15:14:10.155Z FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/chrome'
2 Replies
rival-black
rival-black3y ago
What base Docker image are you using? Try to create first actor with Puppeteer Crawler template, that will create Dockerfile with Chrome. Still not sure if it will be in the folder Selenium needs, I think the folder is in env vars
flat-fuchsia
flat-fuchsiaOP3y ago
thank you

Did you find this page helpful?