Given /^I wait for (\d+) seconds?$/ do |n| sleep(n.to_i) end
在您的功能中:
Given I am on the whatever page And I wait for 5 seconds And I follow "A Link" # etc...