Sha256: 0758d9f8416e56c455f9f0adefcdcf085cdc8c8319496ca8cc32dfa91c7b244d
Contents?: true
Size: 528 Bytes
Versions: 13
Compression:
Stored size: 528 Bytes
Contents
module Watir module Atoms ATOMS = {} def self.load(function_name) ATOMS[function_name] = File.read(File.expand_path("../atoms/#{function_name}.js", __FILE__)) end load :fireEvent load :getAttribute load :getOuterHtml load :getInnerHtml load :getParentElement private def execute_atom(function_name, *arguments) script = "return (%s).apply(null, arguments)" % ATOMS.fetch(function_name) driver.execute_script(script, *arguments) end end # Atoms end # Watir
Version data entries
13 entries across 13 versions & 2 rubygems