Sha256: 1898c87d5925f70288b91fa39459d588f2a57130588bf5055f8fc3c0fedcc861

Contents?: true

Size: 522 Bytes

Versions: 39

Compression:

Stored size: 522 Bytes

Contents

When /^I get the text from the label$/ do
  @text = @page.label_id
end

When /^I search for the label by "([^\"]*)"$/ do |how|
  @text = @page.send "label_#{how}".to_sym
end

When /^I search for the label by "(.*)" and "(.*)"$/ do |param1, param2|
  @text = @page.send "label_#{param1}_#{param2}".to_sym
end

When /^I get the text from a label while the script is executing$/ do
  @text = @page.label_element(:id => 'label_id').text
end

Then /^I should see that the label exists$/ do
  @page.label_id?.should be_true
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
meeane-page-object-0.1.11 features/step_definitions/label_steps.rb
page-object-1.0.2 features/step_definitions/label_steps.rb
page-object-1.0.1 features/step_definitions/label_steps.rb
page-object-1.0 features/step_definitions/label_steps.rb
page-object-0.9.8 features/step_definitions/label_steps.rb
page-object-0.9.7 features/step_definitions/label_steps.rb
page-object-0.9.6 features/step_definitions/label_steps.rb
page-object-0.9.5 features/step_definitions/label_steps.rb
page-object-0.9.4 features/step_definitions/label_steps.rb
page-object-0.9.3 features/step_definitions/label_steps.rb
page-object-0.9.2 features/step_definitions/label_steps.rb
page-object-0.9.1 features/step_definitions/label_steps.rb
page-object-0.9.0 features/step_definitions/label_steps.rb
page-object-0.8.10 features/step_definitions/label_steps.rb
page-object-0.8.9 features/step_definitions/label_steps.rb
page-object-0.8.8 features/step_definitions/label_steps.rb
page-object-0.8.7 features/step_definitions/label_steps.rb
page-object-0.8.6.1 features/step_definitions/label_steps.rb
page-object-0.8.6 features/step_definitions/label_steps.rb
page-object-0.8.5 features/step_definitions/label_steps.rb