Commit db941c32 authored by Tiffany Rea's avatar Tiffany Rea Committed by Mark Lapierre

Fix wrong number of argument

parent 8d3d25c3
......@@ -74,8 +74,11 @@ module QA
end
def within_file_by_number(element, file_number)
method = file_number ? 'within_element_by_index' : 'within_element'
send(method, element, file_number) { yield }
if file_number
within_element_by_index(element, file_number - 1) { yield }
else
within_element(element) { yield }
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment