Sha256: c2551f093a3daafc2141f1764e5688cbdd43eca5ec0ede98d981553f5e921c5f

Contents?: true

Size: 522 Bytes

Versions: 12

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

12 entries across 12 versions & 3 rubygems

Version Path
page-object-1.2.0 features/step_definitions/label_steps.rb
page-object-1.1.1 features/step_definitions/label_steps.rb
page_object-1.1.3 features/step_definitions/label_steps.rb
page_object-1.1.2 features/step_definitions/label_steps.rb
page_object-1.1.1 features/step_definitions/label_steps.rb
page-object-1.1.0 features/step_definitions/label_steps.rb
page-object-lds-0.0.14 features/step_definitions/label_steps.rb
page-object-lds-0.0.13 features/step_definitions/label_steps.rb
page-object-lds-0.0.12 features/step_definitions/label_steps.rb
page-object-lds-0.0.11 features/step_definitions/label_steps.rb
page-object-lds-0.0.1 features/step_definitions/label_steps.rb
page-object-1.0.3 features/step_definitions/label_steps.rb