【问题标题】:Can't execute selenium tests on Windows 10 with parallel_rspec gem无法使用 parallel_rspec gem 在 Windows 10 上执行 selenium 测试
【发布时间】:2021-02-01 22:27:44
【问题描述】:

当我尝试使用 parallel_rspec 执行我的 selenium 测试时,它会显示以下错误,

ChildProcess::MissingFFIError:
  FFI is a required pre-requisite for Windows or posix_spawn support in the ChildProcess gem. Ensure the `ffi` gem is installed. If you believe this is an error, please file a bug at http://github.com/enkessler/childprocess/issues

即使在一个接一个地安装 ffi gem 之后,错误仍然相同。顺便说一下,我的 Ruby 版本是 2.6.6。

【问题讨论】:

  • 我试过了,但我没有成功,因为我认为这仅适用于 Linux,不适用于 Windows。我为并行执行编写了自己的代码。
  • 你介意分享一下吗? @Rajagopalan

标签: ruby selenium selenium-webdriver rspec rubygems


【解决方案1】:

我试图运行 selenium 测试,但我得到了那个错误,我运行

gem install ffi

现在它正在工作。我发现了这个问题https://github.com/enkessler/childprocess/issues/169

【讨论】:

    猜你喜欢
    • 2016-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-01-14
    • 1970-01-01
    • 2019-02-24
    • 1970-01-01
    相关资源
    最近更新 更多