Sha256: 105f164c2c3f33721fbf08ad748a394cd312b569f5b417516fa627b3fa82cc06

Contents?: true

Size: 871 Bytes

Versions: 5

Compression:

Stored size: 871 Bytes

Contents

require File.join(File.dirname(__FILE__),"../../lib/cello/pageobjects/page")
require File.dirname(__FILE__) + "/../spec_helper"

module Mock
  module Site
    class MockPage < Cello::PageObjects::Page
      element :element,  :element, :id => 'elem1'
      element :text_field,  :text_field, :id => 'text1'
      element :text_fieldname,  :text_field, :name => 'text1'
      element :text_fieldxpath,  :text_field, :xpah, '//*[@id="text1"]'
      element :checkbox,  :checkbox, :id => 'check1'
      element :textarea,  :textarea, :id => 'area1'
      element :radios,  :radios, :name => 'items'
      element :select,  :select, :id => 'select1'
      element :link,  :link, :id => 'link1'
      
      def get_url
        'file://' + File.dirname(__FILE__) + '/../site/inputs.html'
      end

      def initialize(teste)
        super(teste)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cello-0.0.27 spec/mock/page.rb
cello-0.0.26 spec/mock/page.rb
cello-0.0.25 spec/mock/page.rb
cello-0.0.23 spec/mock/page.rb
cello-0.0.21 spec/mock/page.rb