Sha256: 82cc97ff29e57b704f0ab9803768e80a2ea1346a5a7f36f857211317108e7150

Contents?: true

Size: 799 Bytes

Versions: 2

Compression:

Stored size: 799 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

2 entries across 2 versions & 1 rubygems

Version Path
meeane-page-object-0.1.10 features/step_definitions/paragraph_steps.rb
meeane-page-object-0.1.8 features/step_definitions/paragraph_steps.rb