Sha256: 4ab43d0e509b9cf77b2fa7c43901c283222209feee9676254a51ebfefb89f2aa
Contents?: true
Size: 779 Bytes
Versions: 2
Compression:
Stored size: 779 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meeane-page-object-0.1.10 | features/step_definitions/image_steps.rb |
meeane-page-object-0.1.8 | features/step_definitions/image_steps.rb |