On Local i was able to do it using below code. But I am not sure how to do it in heroku.
from selenium import webdriver from selenium.webdriver.chrome.options im