Sha256: f5434fce14c344fd7a220ca673bcf09776a2b706e6e73ba73e27c8b37dda271e

Contents?: true

Size: 958 Bytes

Versions: 14

Compression:

Stored size: 958 Bytes

Contents

require "cello"

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

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

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

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

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cello-0.0.35 features/step_definitions/element.rb
cello-0.0.34 features/step_definitions/element.rb
cello-0.0.33 features/step_definitions/element.rb
cello-0.0.32 features/step_definitions/element.rb
cello-0.0.31 features/step_definitions/element.rb
cello-0.0.30 features/step_definitions/element.rb
cello-0.0.29 features/step_definitions/element.rb
cello-0.0.28 features/step_definitions/element.rb
cello-0.0.27 features/step_definitions/element.rb
cello-0.0.26 features/step_definitions/element.rb
cello-0.0.25 features/step_definitions/element.rb
cello-0.0.23 features/step_definitions/element.rb
cello-0.0.21 features/step_definitions/element.rb
cello-0.0.19 features/step_definitions/element.rb