在Capybara提供的文档中,您可以更改特定测试组的 default_driver:
describe 'some stuff which requires js', :js => true do
it 'will use the default js driver'
it 'will switch to one specific driver', :driver => :selenium
end
如果我想为特定的黄瓜测试组执行此操作怎么办?我将如何添加这些参数?
When /^I do something$/ do
fill_in "a_text_box", :with => "stuff"
fill_in "another_text_box", :with => "another_thing"
end
谢谢!