module Selenium::WebDriver::Atoms

Private Instance Methods

execute_atom(function_name, *arguments) click to toggle source
# File lib/selenium/webdriver/atoms.rb, line 11
def execute_atom(function_name, *arguments)
  script = "return (%s).apply(null, arguments)" % read_atom(function_name)
  execute_script(script, *arguments)
end
read_atom(function) click to toggle source
# File lib/selenium/webdriver/atoms.rb, line 7
def read_atom(function)
  File.read(File.expand_path("../atoms/#{function}.js", __FILE__))
end