engine/features/step_definitions/more_web_steps.rb

3 lines
120 B
Ruby

When /^I follow image link "([^"]*)"$/ do |img_alt|
find(:xpath, "//img[@alt = '#{img_alt}']/parent::a").click()
end