It is a Selenium bug The problem is in incorrect proxy processing. Default Ubuntu exclusions are located in a no_proxy environment variable:
But /8 mask doesn't work for selenium. In order to solve this problem we need to change no_proxy as follows:
You can also remove proxy settings before executing the python script:
If you are interested to learn Selenium on a much deeper level and want to become a professional in the testing domain, check out Intellipaat’s advanced Selenium training!