Open milos-slalom opened 11 months ago
Thank you for your contribution. We will look at including this in a future release.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@ohtwadi This is still not included in the latest version. I think the issue might have been closed by mistake.
I have an application that is using Norconex version 3.0.2. For javascript sites I am using the WebDriverHttpFetcher and setting the browser to Chrome. When running locally, everything works fine.
However when running inside a Docker container, I get errors starting the Chrome driver with the following being the most relevant:
When Googling these issues most comments refer to the need to set the --no-sandbox option on the Chrome driver.
I tested this out by creating some selenium code directly in my app and running that code inside the container. Without the --no-sandbox the code fails and with the option it works.
Looking at the Norconex documentation, there is no way to set this option. I ended up downloading the Norconex source code and adding one line in the following file: /collector-http/src/main/java/com/norconex/collector/http/fetch/impl/webdriver/Browser.java
I compiled a new version of the collector and included the new version in my code and then everything runs fine inside the container.
I wanted to raise this issue for your awareness, see if you have any plans to add this as an option to pass into the WebDriverHttpFetcher and if not whether you would consider doing so.
Thanks.