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