Module: Selenium::WebDriver::Atoms

Included in:
DriverExtensions::HasLogEvents, Remote::Bridge
Defined in:
rb/lib/selenium/webdriver/atoms.rb

Instance Method Summary collapse

Instance Method Details

#atom_script(function_name) ⇒ Object



23
24
25
26
# File 'rb/lib/selenium/webdriver/atoms.rb', line 23

def atom_script(function_name)
  format("/* #{function_name} */return (%<atom>s).apply(null, arguments)",
         atom: read_atom(function_name))
end