module Selenium::WebDriver::Atoms
def execute_atom(function_name, *arguments)
def execute_atom(function_name, *arguments) script = "return (%s).apply(null, arguments)" % read_atom(function_name) execute_script(script, *arguments) end
def read_atom(function)
def read_atom(function) File.read(File.expand_path("../atoms/#{function}.js", __FILE__)) end