features/step_definitions/table_steps.rb in page-object-0.2.4 vs features/step_definitions/table_steps.rb in page-object-0.2.5

- old
+ new

@@ -10,5 +10,17 @@ end Then /^the cell data should be '([^"]*)'$/ do |expected| @cell_data.should == expected end + +When /^I retrieve a table element by "([^\"]*)"$/ do |how| + @element = @page.send "table_#{how}_element" +end + +When /^I retrieve a table element by "([^"]*)" and "([^"]*)"$/ do |param1, param2| + @element = @page.send "table_#{param1}_#{param2}_element" +end + +When /^I retrieve a table element while the script is executing$/ do + @element = @page.table_element(:id => 'table_id') +end