Sha256: 9960764440ce7c4a014bd4172f2ce8da240ce0f6c700d95780628c2bfe441068

Contents?: true

Size: 665 Bytes

Versions: 16

Compression:

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
page-object-0.6 features/step_definitions/image_steps.rb
page-object-0.5.5 features/step_definitions/image_steps.rb
page-object-0.5.4 features/step_definitions/image_steps.rb
page-object-0.5.3 features/step_definitions/image_steps.rb
page-object-0.5.2 features/step_definitions/image_steps.rb
page-object-0.5.1 features/step_definitions/image_steps.rb
page-object-0.5.0 features/step_definitions/image_steps.rb
page-object-0.4.4 features/step_definitions/image_steps.rb
page-object-0.4.3 features/step_definitions/image_steps.rb
page-object-0.4.2 features/step_definitions/image_steps.rb
page-object-0.4.1 features/step_definitions/image_steps.rb
page-object-0.4.0 features/step_definitions/image_steps.rb
page-object-0.3.2 features/step_definitions/image_steps.rb
page-object-0.3.1 features/step_definitions/image_steps.rb
page-object-0.3.0 features/step_definitions/image_steps.rb
page-object-0.2.5 features/step_definitions/image_steps.rb