Sha256: e6090135f3493ebe16b7de7ab940db75bbf74d3792933f7b652268e8c491145d

Contents?: true

Size: 517 Bytes

Versions: 38

Compression:

Stored size: 517 Bytes

Contents

When /^I get the text from the span$/ do
  @text = @page.span_id
end

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

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

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

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

Version data entries

38 entries across 38 versions & 4 rubygems

Version Path
page-object-0.9.4 features/step_definitions/span_steps.rb
page-object-0.9.3 features/step_definitions/span_steps.rb
page-object-0.9.2 features/step_definitions/span_steps.rb
page-object-0.9.1 features/step_definitions/span_steps.rb
page-object-0.9.0 features/step_definitions/span_steps.rb
page-object-0.8.10 features/step_definitions/span_steps.rb
page-object-0.8.9 features/step_definitions/span_steps.rb
page-object-0.8.8 features/step_definitions/span_steps.rb
page-object-0.8.7 features/step_definitions/span_steps.rb
page-object-0.8.6.1 features/step_definitions/span_steps.rb
page-object-0.8.6 features/step_definitions/span_steps.rb
page-object-0.8.5 features/step_definitions/span_steps.rb
page-object-0.8.4 features/step_definitions/span_steps.rb
page-object-0.8.3 features/step_definitions/span_steps.rb
page-object-0.8.2 features/step_definitions/span_steps.rb
page-object-0.8.1 features/step_definitions/span_steps.rb
page-object-0.8 features/step_definitions/span_steps.rb
page-object-0.7.6 features/step_definitions/span_steps.rb