我正在运行一个Selenium Webdriver脚本,其中包含了进口chromedriver,但在Jenkins服务器中出现此错误:
SEVERE: org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "C:\Program Files (x86)\Jenkins\workspace\TestSelenium1\chromedriver.exe" (in directory "."): CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher)
Current working directory : C:\Program Files (x86)\Jenkins\workspace\TestSelenium1
Selenium version:2.53.1
ChromeDriver: 2.21
有什么建议吗?
答案 0 :(得分:0)
我使用的是最新的Chrome驱动程序版本,但看起来Selenium和Windows Server 2016似乎支持ChromeDriver 2.33。因此,当我降级版本时它对我有用。