mezengli 发表于 2013-8-19 20:32:56

selenium webdriver 基于Ruby代码无法运行

我在搭建selenium webdriver(基于Ruby)的运行环境时,遇到了一个问题。就是在我把所有的安装步骤都执行完毕之后,我的脚本仍然不能运行,他总是报出:

F:\Automation\tests\smoke_test>rspec smoke_for_0_checkDB_spec.rb
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- F:/Automation/config/boot (LoadError)
      from <internal:lib/rubygems/custom_require>:29:in `require'
      from F:/Automation/spec/spec_helper.rb:3:in `<top (required)>'
      from F:/Automation/tests/smoke_test/smoke_for_0_checkDB_spec.rb:2:in `require_relative'
      from F:/Automation/tests/smoke_test/smoke_for_0_checkDB_spe
c.rb:2:in `<top (required)>'
      from d:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load'
      from d:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `block in load_spec_files'
      from d:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `each'
      from d:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.4/lib/rspec/core/configuration.rb:896:in `load_spec_files'
      from d:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.4/lib/rspec/core/command_line.rb:22:in `run'
      from d:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:80:in `run'
      from d:/Ruby192/lib/ruby/gems/1.9.1/gems/rspec-core-2.14.4/lib/rspec/core/runner.rb:17:in `block in autorun'



我的电脑是Win7 64 位操作系统,

ruby版本是:ruby 1.9.3p429 (2013-05-15)

webdriver 版本是: selenium-webdriver (2.33.0)

希望哪位大侠可以帮帮我,谢谢谢谢谢谢谢谢谢谢~~~~

mezengli 发表于 2013-8-25 22:09:18

没人知道吗?

z3314z 发表于 2013-12-19 19:22:34

ruby可以用watir-webdriver
页: [1]
查看完整版本: selenium webdriver 基于Ruby代码无法运行