evaluate -> execute_script when return not needed.

This commit is contained in:
Ciro Santilli 2014-09-24 08:52:38 +02:00
parent 6da15541d3
commit b9c2e6ebdc

View file

@ -12,7 +12,7 @@ class Spinach::Features::ProjectMultiselectBlob < Spinach::FeatureSteps
step "I shift-click line #{line_number} in file" do
script = "$('#L#{line_number}').trigger($.Event('click', { shiftKey: true }));"
page.evaluate_script(script)
execute_script(script)
end
end
end