Sha256: 53504680f438f4643cafa514937248647245f7c3a1104ab77f3f991c5843170b

Contents?: true

Size: 506 Bytes

Versions: 54

Compression:

Stored size: 506 Bytes

Contents

When /^I get the text from the div$/ do
  @text = @page.div_id
end

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

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

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

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

Version data entries

54 entries across 54 versions & 4 rubygems

Version Path
page-object-0.7.4 features/step_definitions/div_steps.rb
page-object-0.7.3 features/step_definitions/div_steps.rb
page-object-0.7.2 features/step_definitions/div_steps.rb
page-object-0.7.1 features/step_definitions/div_steps.rb
page-object-0.7.0 features/step_definitions/div_steps.rb
page-object-0.6.9 features/step_definitions/div_steps.rb
page-object-0.6.8 features/step_definitions/div_steps.rb
page-object-0.6.7 features/step_definitions/div_steps.rb
page-object-0.6.6 features/step_definitions/div_steps.rb
page-object-0.6.5 features/step_definitions/div_steps.rb
page-object-0.6.4 features/step_definitions/div_steps.rb
page-object-0.6.3 features/step_definitions/div_steps.rb
page-object-0.6.2 features/step_definitions/div_steps.rb
page-object-0.6.1 features/step_definitions/div_steps.rb