Sha256: bab1803f10e924f558132654324ae66464c57534e2cfd16ef54ed5a0c87a1e84

Contents?: true

Size: 916 Bytes

Versions: 8

Compression:

Stored size: 916 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 :test_element,  :element, :id => 'elem1'
      element :test_text_field,  :text_field, :id => 'text1'
      element :test_text_fieldname,  :text_field, :name => 'text1'
      element :test_text_fieldxpath,  :text_field, :xpah, '//*[@id="text1"]'
      element :test_checkbox,  :checkbox, :id => 'check1'
      element :test_textarea,  :textarea, :id => 'area1'
      element :test_radios,  :radios, :name => 'items'
      element :test_select,  :select, :id => 'select1'
      element :test_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

8 entries across 8 versions & 1 rubygems

Version Path
cello-0.0.35 spec/mock/page.rb
cello-0.0.34 spec/mock/page.rb
cello-0.0.33 spec/mock/page.rb
cello-0.0.32 spec/mock/page.rb
cello-0.0.31 spec/mock/page.rb
cello-0.0.30 spec/mock/page.rb
cello-0.0.29 spec/mock/page.rb
cello-0.0.28 spec/mock/page.rb