Sha256: de459082d4d4e61ca8e021bd0d7910dc9b3d222cbe2bbeb3019105b5c56abd4b

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

When(/^I get the image element$/) do
  @element = @page.image_id_element
end

Then(/^the image should be "(.*?)" pixels wide$/) do |width|
  expect(@element.width.to_s).to eql width
end

Then(/^the image should be "(.*?)" pixels tall$/) do |height|
  expect(@element.height.to_s).to eql height
end

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

When /^I get the image element bys "([^"]*)" 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

2 entries across 2 versions & 1 rubygems

Version Path
druid-ts-1.1.1 features/step_definations/image_steps.rb
druid-ts-1.1.0 features/step_definations/image_steps.rb