Sha256: 4fec16d90f8b33262f809a654ad2c0931dc8fd2a88cd597f2191e476feb1903f

Contents?: true

Size: 1.51 KB

Versions: 64

Compression:

Stored size: 1.51 KB

Contents

Then /^the current item should be "([^\"]*)"$/ do |expected_text|
  @page.sel_list_id.should == expected_text
end

Then /^the text should be "([^\"]*)"$/ do |expected_text|
  @text.should == expected_text
end

Then /^I should be on the success page$/ do
  @page.text.should include 'Success'
  @page.title.should == 'Success'
end

Then /^the list items text should be "([^\"]*)"$/ do |expected_text|
  @element.text.should == expected_text
end

When /^I get the first item from the list$/ do
  @element = @list[0]
end

Then /^the table should have "([^\"]*)" rows$/ do |rows|
  @element.rows.should == rows.to_i
end

Then /^each row should contain "([^\"]*)"$/ do |text|
  @element.each do |row|
    row.text.should include text
  end
end

Then /^row "([^\"]*)" should have "([^\"]*)" columns$/ do |row, cols|
  @element[row.to_i - 1].columns.should == cols.to_i
end

Then /^each column should contain "([^\"]*)"$/ do |text|
  row = @element[0]
  row.each do |column|
    column.text.should include text
  end
end

Then /^the list should contain (\d+) items$/ do |items|
  @list.items.should == items.to_i
end

Then /^each item should contain "([^\"]*)"$/ do |text|
  @list.each { |item| item.text.should include text }
end

Then /^option "([^\"]*)" should contain "([^\"]*)"$/ do |opt_num, text|
  @element = @page.send "sel_list_#{@how}_element".to_sym
  @element[opt_num.to_i - 1].text.should == text
end

Then /^each option should contain "([^\"]*)"$/ do |text|
  @element.options.each do |option|
    option.text.should include text
  end
end

Version data entries

64 entries across 64 versions & 3 rubygems

Version Path
page-object-lds-0.0.14 features/step_definitions/accessor_steps.rb
page-object-lds-0.0.13 features/step_definitions/accessor_steps.rb
page-object-lds-0.0.12 features/step_definitions/accessor_steps.rb
page-object-lds-0.0.11 features/step_definitions/accessor_steps.rb
page-object-lds-0.0.1 features/step_definitions/accessor_steps.rb
page-object-1.0.3 features/step_definitions/accessor_steps.rb
meeane-page-object-0.1.11 features/step_definitions/accessor_steps.rb
page-object-1.0.2 features/step_definitions/accessor_steps.rb
page-object-1.0.1 features/step_definitions/accessor_steps.rb
page-object-1.0 features/step_definitions/accessor_steps.rb
page-object-0.9.8 features/step_definitions/accessor_steps.rb
page-object-0.9.7 features/step_definitions/accessor_steps.rb
page-object-0.9.6 features/step_definitions/accessor_steps.rb
page-object-0.9.5 features/step_definitions/accessor_steps.rb
page-object-0.9.4 features/step_definitions/accessor_steps.rb
page-object-0.9.3 features/step_definitions/accessor_steps.rb
page-object-0.9.2 features/step_definitions/accessor_steps.rb
page-object-0.9.1 features/step_definitions/accessor_steps.rb
page-object-0.9.0 features/step_definitions/accessor_steps.rb
page-object-0.8.10 features/step_definitions/accessor_steps.rb