首页 > 解决方案 > 将 python 与 selenium webdriver 一起使用并不适用于每个无线连接

问题描述

当我在办公室使用它时(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

标签: python-3.xselenium-webdriverselenium-chromedriver

解决方案


推荐阅读