问题:当我运行测试时,我在命令提示符中收到以下消息
Started ChromeDriver
port=9515
version=21.0.1180.4
log=C:\Users\jhomer\Desktop\Workspace\WebAutomationTesting\Tests\chromedriver.log
然后 Chrome 启动,之后我收到一条 Windows 错误消息,指出 chromedriver 已停止工作。
附加信息:我最近刚从 mac (osx) 切换到 windows 7。我使用的是相同的 IDE (Aptana 3),并且安装了相同的 gem:
addressable (2.2.8)
bigdecimal (1.1.0)
builder (3.0.0)
childprocess (0.3.2)
commonwatir (3.0.0)
ffi (1.0.11)
hoe (3.0.6)
io-console (0.3)
json (1.7.3, 1.5.4)
json_pure (1.7.3)
libwebsocket (0.1.3)
minitest (3.2.0, 3.1.0, 2.5.1
multi_json (1.3.6)
nokogiri (1.5.5 x86-mingw32)
rake (0.9.2.2)
rautomation (0.7.2)
rdoc (3.12, 3.9.4)
rubygems-update (1.8.24)
rubyzip (0.9.9)
s4t-utils (1.0.4)
selenium-webdriver (2.24.0)
user-choices (1.1.6.1)
watir (3.0.0)
watir-classic (3.0.0)
watir-webdriver (0.6.1)
win32-api (1.4.8 x86-mingw32)
win32-process (0.6.5)
windows-api (0.4.1)
windows-pr (1.2.1)
xml-simple (1.1.1)
我已经运行了 gem update、gem pristine --all,但都没有帮助。
** 更新 **
测试“完成”后我收到的提示错误如下:
所以在我使用你建议的版本之前,我收到了这个错误:
Error:
test_UserRoles(UserRolesTest):
Errno::ECONNREFUSED: No connection could be made because the target machine actively refused it. - connect(2)
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/default.rb:76:in `response_for'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/default.rb:38:in 'request'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/http/common.rb:40:in `call'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:598:in 'raw_execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:576:in `execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/remote/bridge.rb:189:in 'quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/chrome/bridge.rb:48:in 'quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.24.0/lib/selenium/w ebdriver/common/driver.rb:166:in `quit'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.1/lib/watir-webdrive r/browser.rb:87:in 'close'
UserRolesTest.rb:48:in 'teardown'
让我知道您是否需要任何其他信息。
谢谢。