Sha256: 9008b8bd8e6c6eb3a8e420b2e69f636f15390e4d4169df36ae3542e2fd14dc49

Contents?: true

Size: 490 Bytes

Versions: 43

Compression:

Stored size: 490 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

43 entries across 43 versions & 4 rubygems

Version Path
page-object-1.2.0 features/step_definitions/canvas_steps.rb
page-object-1.1.1 features/step_definitions/canvas_steps.rb
page_object-1.1.3 features/step_definitions/canvas_steps.rb
page_object-1.1.2 features/step_definitions/canvas_steps.rb
page_object-1.1.1 features/step_definitions/canvas_steps.rb
page-object-1.1.0 features/step_definitions/canvas_steps.rb
page-object-lds-0.0.14 features/step_definitions/canvas_steps.rb
page-object-lds-0.0.13 features/step_definitions/canvas_steps.rb
page-object-lds-0.0.12 features/step_definitions/canvas_steps.rb
page-object-lds-0.0.11 features/step_definitions/canvas_steps.rb
page-object-lds-0.0.1 features/step_definitions/canvas_steps.rb
page-object-1.0.3 features/step_definitions/canvas_steps.rb
meeane-page-object-0.1.11 features/step_definitions/canvas_steps.rb
page-object-1.0.2 features/step_definitions/canvas_steps.rb
page-object-1.0.1 features/step_definitions/canvas_steps.rb
page-object-1.0 features/step_definitions/canvas_steps.rb
page-object-0.9.8 features/step_definitions/canvas_steps.rb
page-object-0.9.7 features/step_definitions/canvas_steps.rb
page-object-0.9.6 features/step_definitions/canvas_steps.rb
page-object-0.9.5 features/step_definitions/canvas_steps.rb