将python与selenium webdriver结合使用并不适用于每个无线连接

时间:2018-08-16 23:57:38

标签: python-3.x selenium-webdriver selenium-chromedriver

当我在办公室(wifi连接)使用脚本时,脚本运行良好。但是当我回到家并且使用我的个人wifi或任何其他wifi时,它就无法工作...

能请你帮我吗?

摘自general.log

ERROR [2018-08-11 21:31:18] [mehdidouache] Message: Can not connect to the Service /Users/Mehdi/Desktop/InstaPy/assets/chromedriver Traceback (most recent call last): File "/Users/Mehdi/Desktop/InstaPy/instapy/instapy.py", line 299, in set_selenium_local_session chrome_options=chrome_options) File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in init self.service.start() File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/common/service.py", line 102, in start raise WebDriverException("Can not connect to the Service %s" % self.path) selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /Users/Mehdi/Desktop/InstaPy/assets/chromedriver

0 个答案:

没有答案