When(/^I retrieve the data from the table cell$/) do @cell_text = @page.cell_id end Then(/^the cell data should be '(.*?)'$/) do |expected_text| expect(@cell_text).to eql expected_text end When(/^I locate the table cell by "(.*?)"$/) do |how| @cell_text = @page.send "cell_#{how}".to_sym end When(/^I retrieve table cell$/) do @element = @page.cell_id_element end When(/^I retrieve a table cell element by "(.*?)" and "(.*?)"$/) do |param1, param2| @cell_text = @page.send "cell_#{param1}_#{param2}".to_sym end When(/^I retrieve a table cell element while the script is executing$/) do @cell_text = @page.cell_element(:id => 'cell_id').text end Then(/^I should see that the cell exists$/) do expect(@page.cell_id?).to be true end