I have faced one issue, after running the ruby code, version 1.8.7, it will report error as following,

Issue:

>ruby test.rb
test.rb:2:in `require': no such file to load -- watir (LoadError)
    from test.rb:2
>Exit code: 1

 

Solution:

Before require “watir”, add require “rubygems”.

require "rubygems"
require "watir"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-14
  • 2021-09-03
  • 2022-12-23
  • 2021-11-02
  • 2021-09-24
  • 2021-05-30
相关资源
相似解决方案