相关疑难解决方法(0)

水豚找不到语义用户界面的选择框

我将capybaracapybara-webkitSemantic-ui结合使用,但它似乎无法显示下拉菜单,因为<select>element是隐藏的:

# feature_spec.rb
select 'option1', from: 'Options'

$ rspec feature_spec.rb

Capybara::ElementNotFound:
  Unable to find select box "Options"
Run Code Online (Sandbox Code Playgroud)

您对此有可行的解决方案吗?

ruby-on-rails capybara capybara-webkit semantic-ui

4
推荐指数
1
解决办法
581
查看次数