Sha256: 3228cdf0426fcbd5892d585337e26fece47fefe493d0ec250aefe993804d8d04

Contents?: true

Size: 750 Bytes

Versions: 19

Compression:

Stored size: 750 Bytes

Contents

When /^I get the image element$/ do
  @element = @page.image_id_image
end

Then /^the image should be "([^\"]*)" pixels wide$/ do |width|
  @element.width.should == width.to_i
end

Then /^the image should be "([^\"]*)" pixels tall$/ do |height|
  @element.height.should == height.to_i
end

When /^I get the image element by "([^\"]*)"$/ do |how|
  @element = @page.send "image_#{how}_element"
end

When /^I get the image element by "([^"]*)" and "([^"]*)"$/ do |param1, param2|
  @element = @page.send "image_#{param1}_#{param2}_element"
end

When /^I get the image element while the script is executing$/ do
  @element = @page.image_element(:id => 'image_id')
end

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
page-object-0.8.1 features/step_definitions/image_steps.rb
page-object-0.8 features/step_definitions/image_steps.rb
page-object-0.7.6 features/step_definitions/image_steps.rb
page-object-0.7.5.1 features/step_definitions/image_steps.rb
page-object-0.7.5 features/step_definitions/image_steps.rb
page-object-0.7.4 features/step_definitions/image_steps.rb
page-object-0.7.3 features/step_definitions/image_steps.rb
page-object-0.7.2 features/step_definitions/image_steps.rb
page-object-0.7.1 features/step_definitions/image_steps.rb
page-object-0.7.0 features/step_definitions/image_steps.rb
page-object-0.6.9 features/step_definitions/image_steps.rb
page-object-0.6.8 features/step_definitions/image_steps.rb
page-object-0.6.7 features/step_definitions/image_steps.rb
page-object-0.6.6 features/step_definitions/image_steps.rb
page-object-0.6.5 features/step_definitions/image_steps.rb
page-object-0.6.4 features/step_definitions/image_steps.rb
page-object-0.6.3 features/step_definitions/image_steps.rb
page-object-0.6.2 features/step_definitions/image_steps.rb
page-object-0.6.1 features/step_definitions/image_steps.rb