Sha256: dacc18fb223cefdde9c648c1f735b6b4750dfed42a4ad8f9a384c109a328db5e

Contents?: true

Size: 752 Bytes

Versions: 35

Compression:

Stored size: 752 Bytes

Contents

When /^I get the image element$/ do
  @element = @page.image_id_element
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

35 entries across 35 versions & 4 rubygems

Version Path
page-object-1.2.0 features/step_definitions/image_steps.rb
page-object-1.1.1 features/step_definitions/image_steps.rb
page_object-1.1.3 features/step_definitions/image_steps.rb
page_object-1.1.2 features/step_definitions/image_steps.rb
page_object-1.1.1 features/step_definitions/image_steps.rb
page-object-1.1.0 features/step_definitions/image_steps.rb
page-object-lds-0.0.14 features/step_definitions/image_steps.rb
page-object-lds-0.0.13 features/step_definitions/image_steps.rb
page-object-lds-0.0.12 features/step_definitions/image_steps.rb
page-object-lds-0.0.11 features/step_definitions/image_steps.rb
page-object-lds-0.0.1 features/step_definitions/image_steps.rb
page-object-1.0.3 features/step_definitions/image_steps.rb
meeane-page-object-0.1.11 features/step_definitions/image_steps.rb
page-object-1.0.2 features/step_definitions/image_steps.rb
page-object-1.0.1 features/step_definitions/image_steps.rb
page-object-1.0 features/step_definitions/image_steps.rb
page-object-0.9.8 features/step_definitions/image_steps.rb
page-object-0.9.7 features/step_definitions/image_steps.rb
page-object-0.9.6 features/step_definitions/image_steps.rb
page-object-0.9.5 features/step_definitions/image_steps.rb