Sha256: 6a0a5fc8a89d70f5576c04f0b86fd6958a11e642a0129ac1f4a1ba340a0b8c83

Contents?: true

Size: 771 Bytes

Versions: 22

Compression:

Stored size: 771 Bytes

Contents

When /^I get the text from the paragraph$/ do
  @text = @page.p_id
end

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

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

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

Then /^I should see that the paragraph exists$/ do
  @page.p_id?.should == true
end

Then(/^I should know the paragraph class is "(.*?)"$/) do |class_name|
  @page.p_id_element.class_name.should == class_name
end

Then(/^I should be able to select "(.*?)" from the paragraph$/) do |text|
  @page.p_id_element.select_text text
end

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
page-object-1.2.0 features/step_definitions/paragraph_steps.rb
page-object-1.1.1 features/step_definitions/paragraph_steps.rb
page_object-1.1.3 features/step_definitions/paragraph_steps.rb
page_object-1.1.2 features/step_definitions/paragraph_steps.rb
page_object-1.1.1 features/step_definitions/paragraph_steps.rb
page-object-1.1.0 features/step_definitions/paragraph_steps.rb
page-object-lds-0.0.14 features/step_definitions/paragraph_steps.rb
page-object-lds-0.0.13 features/step_definitions/paragraph_steps.rb
page-object-lds-0.0.12 features/step_definitions/paragraph_steps.rb
page-object-lds-0.0.11 features/step_definitions/paragraph_steps.rb
page-object-lds-0.0.1 features/step_definitions/paragraph_steps.rb
page-object-1.0.3 features/step_definitions/paragraph_steps.rb
meeane-page-object-0.1.11 features/step_definitions/paragraph_steps.rb
page-object-1.0.2 features/step_definitions/paragraph_steps.rb
page-object-1.0.1 features/step_definitions/paragraph_steps.rb
page-object-1.0 features/step_definitions/paragraph_steps.rb
page-object-0.9.8 features/step_definitions/paragraph_steps.rb
page-object-0.9.7 features/step_definitions/paragraph_steps.rb
page-object-0.9.6 features/step_definitions/paragraph_steps.rb
page-object-0.9.5 features/step_definitions/paragraph_steps.rb