我一开始运行的时候出现了这种错误,其实错误原因很简单,就是浏览器没有启动起来,首先你要保证ChromeDriver跟你的Chrome安装路径一致,比如我的
就这样把跟自己浏览器版本一致的ChromeDriver放在安装路径下即可
再次运行Testng就可以启动浏览器啦!
相关文章
- 12-25关于执行webdriver.Chrome; 报错WebDriverException: Message: unknown error: Element is not clickable at poin
- 12-25appium 报错:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occu
- 12-25selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to
- 12-25selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to
- 12-25webdriver.Chrome()报错:selenium.common.exceptions.WebDriverException: Message: 'chromedriver'
- 12-25python+selenium,打开浏览器时报selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH
- 12-25selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH.
- 12-25windows下使用selenium报错selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH
- 12-25selenium使用报错“selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.”
- 12-25[Python] selenium 爬虫报错:Message: 'chromedriver' executable needs to be in PATH.解决办法