Sha256: f7631cd8540c76986703bae859a0ba70922e9f4eff2733534af49315d3f0580b

Contents?: true

Size: 768 Bytes

Versions: 11

Compression:

Stored size: 768 Bytes

Contents

Then /^the data for row "([^"]*)" should be "([^"]*)" and "([^"]*)"$/ do |row, col1, col2|
  table_row = @element[row.to_i - 1]
  table_row[0].text.should == col1
  table_row[1].text.should == col2
end


When /^I retrieve the data from the table cell$/ do
  @cell_data = @page.cell_id
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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
page-object-0.5.1 features/step_definitions/table_steps.rb
page-object-0.5.0 features/step_definitions/table_steps.rb
page-object-0.4.4 features/step_definitions/table_steps.rb
page-object-0.4.3 features/step_definitions/table_steps.rb
page-object-0.4.2 features/step_definitions/table_steps.rb
page-object-0.4.1 features/step_definitions/table_steps.rb
page-object-0.4.0 features/step_definitions/table_steps.rb
page-object-0.3.2 features/step_definitions/table_steps.rb
page-object-0.3.1 features/step_definitions/table_steps.rb
page-object-0.3.0 features/step_definitions/table_steps.rb
page-object-0.2.5 features/step_definitions/table_steps.rb