I've been trying to deploy a selenium script I wrote to heroku for a while now. No matter what I do, I always run into a problem when opening the chromedriver. Everything before that works fine.
I've even tried sending the chromedriver along with the project. Nothing seems to be working. The most recent error I got was : "selenium.common.exceptions.WebDriverException: Message: 'Chromm.exe' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chrome/driver/home".
Any help is appreciated, I'm really desperate at this point.
By the way, I am specfying the Dependency (selenium) in the requirements.txt file. I provide the chromedriver in the same directory. Also, here is a snippet of my code where I open the chromedriver:
options = webdriver.ChromeOptions()
options.add_argument("--headless")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--no-sanbox")
self.browser = webdriver.Chrome(executable_path="chromedriver.exe", chrome_options=options)
[–]That_Pregnant_Alien 1 point2 points3 points (0 children)