Sha256: bbb04cc5ee78e380e47949ee45caca71b017932520520e6a816f6ed2c1e55d1e

Contents?: true

Size: 1.79 KB

Versions: 38

Compression:

Stored size: 1.79 KB

Contents

module Celerity
  class Browser
    class << self

      # Added for Watir compatibility - not in use by Celerity
      attr_accessor :speed, :attach_timeout, :visible
      # Added for Watir compatibility - not in use by Celerity
      alias_method :start_window, :start
      # Added for Watir compatibility - not in use by Celerity
      def each; end
    end

    # Added for Watir compatibility - not in use by Celerity
    attr_accessor :visible

    # Added for Watir compatibility - not in use by Celerity
    def bring_to_front; true; end
    # Added for Watir compatibility - not in use by Celerity
    def speed=(s); s end
  end


  module ClickableElement
    alias_method :click_no_wait,    :click
  end

  module Container
    alias_method :checkbox,         :check_box
    alias_method :checkBox,         :check_box
    alias_method :body,             :tbody
    alias_method :bodies,           :tbodies
  end

  class Element
    alias_method :exists,           :exists?
    alias_method :innerText,        :text
    alias_method :inner_text,       :text
  end

  class Image
    alias_method :hasLoaded?,       :loaded?
    alias_method :fileSize,         :file_size
    alias_method :fileCreatedDate,  :file_created_date
  end

   class Link
     alias_method :click_no_wait,   :click
   end

  class RadioCheckCommon
    alias_method :isSet?,           :set?
    alias_method :getState,         :set?
  end

  class SelectList
    alias_method :getSelectedItems, :selected_options
    alias_method :getAllContents,   :options
    alias_method :clearSelection,   :clear
    alias_method :includes?,        :include?
  end

  class TextField
    alias_method :dragContentsTo,   :drag_contents_to
    alias_method :getContents,      :value

    def requires_typing; end
  end
end

Celerity::IE = Celerity::Browser

Version data entries

38 entries across 38 versions & 6 rubygems

Version Path
celerity_thingista-0.9.3 lib/celerity/watir_compatibility.rb
celerity_thingista-0.9.2 lib/celerity/watir_compatibility.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/lib/celerity/watir_compatibility.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/lib/celerity/watir_compatibility.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/lib/celerity/watir_compatibility.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/lib/celerity/watir_compatibility.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/celerity-0.9.2/lib/celerity/watir_compatibility.rb
celerity-0.9.2 lib/celerity/watir_compatibility.rb
celerity-0.9.1 lib/celerity/watir_compatibility.rb
no-click-exception-celerity-0.9.0 lib/celerity/watir_compatibility.rb
celerity-0.9.0 lib/celerity/watir_compatibility.rb
celerity-0.8.9 lib/celerity/watir_compatibility.rb
celerity-0.8.9.pre lib/celerity/watir_compatibility.rb
celerity-0.8.8 lib/celerity/watir_compatibility.rb
celerity-0.8.7 lib/celerity/watir_compatibility.rb
celerity-0.8.6 lib/celerity/watir_compatibility.rb
celerity-0.8.5 lib/celerity/watir_compatibility.rb
celerity-0.8.4 lib/celerity/watir_compatibility.rb
celerity-0.8.2 lib/celerity/watir_compatibility.rb
celerity-0.8.1 lib/celerity/watir_compatibility.rb