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 ...@@ -74,8 +74,11 @@ module QA
end end
def within_file_by_number(element, file_number) def within_file_by_number(element, file_number)
method = file_number ? 'within_element_by_index' : 'within_element' if file_number
send(method, element, file_number) { yield } within_element_by_index(element, file_number - 1) { yield }
else
within_element(element) { yield }
end
end end
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