Sha256: aae56722d4c5da34560f37cd4659244c3b7cc912bbff307c5f4b5b71b94c4aa4

Contents?: true

Size: 581 Bytes

Versions: 10

Compression:

Stored size: 581 Bytes

Contents

# encoding: utf-8
module Watir
  module Container
    class << self

      #
      # @api private
      #

      def add(method, &blk)
        define_method(method, &blk)
      end
    end

    include XpathSupport

    private

    def browserbot(function_name, *arguments)
      script = browserbot_script + "return browserbot.#{function_name}.apply(browserbot, arguments);"
      driver.execute_script(script, *arguments)
    end

    def browserbot_script
      @browserbot_script ||= File.read("#{File.dirname(__FILE__)}/browserbot.js")
    end

  end # Container
end # Watir

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
watir-webdriver-0.0.6 lib/watir-webdriver/container.rb
watir-webdriver-0.0.5 lib/watir-webdriver/container.rb
watir-webdriver-0.0.4 lib/watir-webdriver/container.rb
watir-webdriver-0.0.3 lib/watir-webdriver/container.rb
watir-webdriver-0.0.2 lib/watir-webdriver/container.rb
watir-webdriver-0.0.1 lib/watir-webdriver/container.rb
watir-webdriver-0.0.1.dev7 lib/watir-webdriver/container.rb
watir-webdriver-0.0.1.dev6 lib/watir-webdriver/container.rb
watir-webdriver-0.0.1.dev5 lib/watir-webdriver/container.rb
watir-webdriver-0.0.1.dev4 lib/watir-webdriver/container.rb