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