Adventures with Dockerised Headed Chrome, Extensions and Selenium-Python
tech.ovoenergy.com
tech.ovoenergy.com
So I created a Docker container that uses chromedriver+selenium and it works GREAT. My first attempt at Selenium.
I did run into one problem though: Downloading large attachments failed. After a bit of searching, I found I needed to add the following docker argument: --shm-size=5g I had tried various other memory-related arguments (I figured it was memory related), but that's the one that did the trick.
I'm putting it here: https://gitlab.com/linsomniac/fogbugz-to-jira
There are many caveats for the unwary when beginning a selenium adventure: detecting and retrying stale element exceptions (you can't just retry the final (say) click operation; you need to retry a DOM interaction sequence), detecting when an async operation begins and reaches a steady state, reliable snapshots and video recording across browsers, injecting the correct args to the browser containers, etc.