I run the selenium script today and I get the error Can not connect to the Service chromedriver.
I probably Baidu, there are two main solutions:
The first one is to modify the content in the hosts:
The cancellation 127.0.0.1 localhost comments
Second, modify the firewall
Turn off the firewall function
Both of the above methods can be achieved,
However, if I don’t want to turn off the firewall and want to run a selenium script, is there any other way? ?
Xiaoyu tried it, that is, first turn off the firewall → run the script → turn on the firewall → continue to run the script!
With this operation, the script can still be executed! ! !
Just this kind of operation, that is, you can run scripts without turning off the firewall. This is called killing two birds with one stone~~~