Windows 7 64位上使用Selenium chromedriver时出错 [英] error using selenium chromedriver on windows 7 64 bit

查看:83
本文介绍了Windows 7 64位上使用Selenium chromedriver时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 7上使用chromeDriver运行Selenium时遇到问题.出现以下错误:

I'm having trouble running Selenium with chromeDriver on Windows 7. I'm getting the following error:

Jan 27, 2016 11:52:57 AM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException: 
Execution failed (Exit value: -559038737. Caused by java.io.IOException:
Cannot run program "C:\testproject\target\resources\chromedriver.exe" 
(in directory "."): CreateProcess error=193, %1 is not a valid Win32 application)

双击eclipse之外的驱动程序会出现Windows错误(不是有效的Win32应用程序)

Double clicking the driver outside of eclipse gives a windows error (not a valid Win32 application)

要使其在64位Windows 7环境中运行是否有技巧?

Is there some trick to getting it to work on a 64bit Windows 7 environment?

推荐答案

ChromeDriver下载可能由于网络错误或其他原因而损坏,因此chromedriver.exe不完整!尝试再次从 https://sites.google.com/a/chromium.org下载ChromeDriver. /chromedriver/

Maybe the ChromeDriver download was corrupted by a network error or something, so the chromedriver.exe is incomplete! Try downloading ChromeDriver again from https://sites.google.com/a/chromium.org/chromedriver/

这篇关于Windows 7 64位上使用Selenium chromedriver时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆