Relative Content

Tag Archive for pythondockerselenium-webdriver

Selenium parser not working in docker (Python)

I’ve developed a web scraping script using Selenium that works perfectly on my local computer. However, when I try to run the same script within a Docker container, it fails. The error message indicates that Selenium is unable to locate specific elements on the page, even though they are present.
When i add code stop working chrome_options.add_argument("--headless")
My code: