Sha256: 083c0d815729a7ceb8c2298b4dd5e4925b1b6433953b202931e059b5d119a9a9

Contents?: true

Size: 1015 Bytes

Versions: 33

Compression:

Stored size: 1015 Bytes

Contents

module UrlHelper
  class << self
    def html
      File.expand_path("#{File.dirname(__FILE__)}/../html")
    end

    def files
      target = ENV['BROWSER']
      return "file://#{html}" if target.nil? or target.include? 'local'
      'http://ec2-107-22-131-88.compute-1.amazonaws.com'
    end

    def static_elements
      "#{files}/static_elements.html"
    end
    
    def frame_elements
      "#{files}/frames.html"      
    end
    
    def iframe_elements
      "#{files}/iframes.html"
    end
    
    def nested_frame_elements
      "#{files}/nested_frames.html"
    end
    
    def nested_elements
      "#{files}/nested_elements.html"
    end
    
    def modal
      "#{files}/modal.html"
    end

    def async
      "#{files}/async.html"
    end

    def multi
      "#{files}/multi_elements.html"
    end

    def indexed
      "#{files}/indexed_property.html"
    end

    def hover
      "#{files}/hover.html"
    end

    def double_click
      "#{files}/double_click.html"
    end
  end
end

Version data entries

33 entries across 33 versions & 4 rubygems

Version Path
page_object-1.1.3 features/support/url_helper.rb
page_object-1.1.2 features/support/url_helper.rb
page_object-1.1.1 features/support/url_helper.rb
page-object-1.1.0 features/support/url_helper.rb
page-object-lds-0.0.14 features/support/url_helper.rb
page-object-lds-0.0.13 features/support/url_helper.rb
page-object-lds-0.0.12 features/support/url_helper.rb
page-object-lds-0.0.11 features/support/url_helper.rb
page-object-lds-0.0.1 features/support/url_helper.rb
page-object-1.0.3 features/support/url_helper.rb
meeane-page-object-0.1.11 features/support/url_helper.rb
page-object-1.0.2 features/support/url_helper.rb
page-object-1.0.1 features/support/url_helper.rb
page-object-1.0 features/support/url_helper.rb
page-object-0.9.8 features/support/url_helper.rb
page-object-0.9.7 features/support/url_helper.rb
page-object-0.9.6 features/support/url_helper.rb
page-object-0.9.5 features/support/url_helper.rb
page-object-0.9.4 features/support/url_helper.rb
page-object-0.9.3 features/support/url_helper.rb