Sha256: 2ec4f741e09f6ffcc79514fc4584248723835769a6768dca1d5b697ec0b3e0a2

Contents?: true

Size: 586 Bytes

Versions: 12

Compression:

Stored size: 586 Bytes

Contents

When(/^I retrieve the canvas element$/) do
  @element = @page.canvas_id_element
end

When(/^I search for the canvas by "([^"]*)"$/) do |how|
  @element = @page.send "canvas_#{how}_element"
end

Then(/^I should see that the canvas width is "([^"]*)"$/) do |width|
  expect(@element.width).to eql width.to_i
end

Then(/^I should see that the canvas height is "([^"]*)"$/) do |height|
  expect(@element.height).to eql height.to_i
end

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
druid-s-1.0.0 features/step_definations/canvas_steps.rb
druid-ts-1.2.6 features/step_definations/canvas_steps.rb
druid-ts-1.2.5 features/step_definations/canvas_steps.rb
druid-ts-1.2.4 features/step_definations/canvas_steps.rb
druid-ts-1.2.3 features/step_definations/canvas_steps.rb
druid-ts-1.2.2 features/step_definations/canvas_steps.rb
druid-ts-1.2.1 features/step_definations/canvas_steps.rb
druid-ts-1.2.0 features/step_definations/canvas_steps.rb
druid-ts-1.1.8 features/step_definations/canvas_steps.rb
druid-ts-1.1.7 features/step_definations/canvas_steps.rb
druid-ts-1.1.6 features/step_definations/canvas_steps.rb
druid-ts-1.1.5 features/step_definations/canvas_steps.rb