Sha256: bf08617892319d1bb278e6a857ceb531938e36ee656f7ba9509dfcb246ec83ac
Contents?: true
Size: 505 Bytes
Versions: 2
Compression:
Stored size: 505 Bytes
Contents
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| @element.width.should == width.to_i end Then /^I should see that the canvas height is "([^\"]*)"$/ do |height| @element.height.should == 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meeane-page-object-0.1.10 | features/step_definitions/canvas_steps.rb |
meeane-page-object-0.1.8 | features/step_definitions/canvas_steps.rb |