Sha256: c07efeb7b478cc57b43ae327b78bb197cf78a8d34b67e301d9e6d109509c3a72

Contents?: true

Size: 894 Bytes

Versions: 2

Compression:

Stored size: 894 Bytes

Contents

require 'mock/page'
require File.dirname(__FILE__) + "/spec_helper"

describe "Class with element" do
  describe "Element interface" do
    before(:all) do
      @page = Mock::Site::MockPage.new "foo"
    end
    it "Verify if the element exists method exists" do
      (@page.methods.map.include? :element_is_real?).should be true
    end
    it "Click on the element method exists" do
      (@page.methods.map.include? :element_click).should be true
    end
    it "Verify if the element is visible method exists" do
      (@page.methods.map.include? :element_is_visible?).should be true
    end
    it "Verify if the element is enable methods exists" do
      (@page.methods.map.include? :element_is_enable?).should be true
    end
    it "Click with the right button on the element method exists" do
      (@page.methods.map.include? :element_right_click).should be true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cello-0.0.26 spec/element_spec.rb
cello-0.0.25 spec/element_spec.rb