Is it possible to use selenium in render?

Languege: python 3.10
Library: chromedriver-binary-auto==0.2.1

I want to run selenium on render.
I tried installing chrome with docker, but an error occurred.

options = Options()
self.driver = webdriver.Chrome(options=options) ← error

error message:
selenium.common.exceptions.WebDriverException: Message:
unknown error: Chrome failed to start: crashed.
(unknown error: DevTools ActivePort file doesn’t exist)

Is it possible to run selenium in render?
If possible, I would appreciate it if you could provide a simple example.

Hi there,

Thanks for reaching out.

If you’re running in Docker, you’re in control of the environment. A quick Google for the error you shared, “DevTools ActivePort file doesn’t exist”, brings up a StackOverflow post. There are some suggested solutions in there, seems it could be related to trying to run Chrome as root.

Alternatively, it might be possible to install Chrome on a Native Environment with a build script which includes something like this

Hope that helps