Sha256: 5eb1b08f2cca82b5b6341b2e3863f494717cac9a4cb6260368b9505c4fdde281

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

Dir[File.dirname(__FILE__) + "/../../pages/*.rb"].each do |file| 
  require file 
end

Given /^that element is named as:$/ do |elements|
  elements.raw.each do |name|
    @page.send("#{name.first}_is_real?")
  end
  @elements = elements
end

Then /^I want click on this element$/ do
  @elements.raw.each do |name|
    @page.send("#{name.first}_click")
  end
  @page.close
end

Then /^I want know if this element is visible$/ do
  @elements.raw.each do |name|
    @page.send("#{name.first}_is_visible?")
  end
  @page.close
end

Then /^I want know if this element is enable$/ do
  @elements.raw.each do |name|
    @page.send("#{name.first}_is_enable?")
  end
  @page.close
end

Then /^I want know if this element exists$/ do
  @elements.raw.each do |name|
    @page.send("#{name.first}_is_real?")
  end
  @page.close
end

Then /^I shoud be able to click with the right button in this element$/ do
  @elements.raw.each do |name|
    @page.send("#{name.first}_right_click")
  end
  @page.close
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cello-0.0.17 features/step_definitions/element.rb
cello-0.0.16 features/step_definitions/element.rb