Trying to iterate table rows, skipping the first row. Using Ruby, Cucumber and Page-object gem.
PAGE_CLASS
table(:table_data, id: 'list')
STEP DEFINITION
@current_page.table_data_element.each.with_index(1) do |row|
puts row.value
end
getting error message: LocalJumpError: no block given (yield)
This code worked for me.