lib/watir-webdriver/atoms.rb in watir-webdriver-0.2.9 vs lib/watir-webdriver/atoms.rb in watir-webdriver-0.3.0
- old
+ new
@@ -7,9 +7,10 @@
ATOMS[function_name] = File.read(File.expand_path("../atoms/#{function_name}.js", __FILE__))
end
load :fireEvent
load :getOuterHtml
+ load :getParentElement
private
def execute_atom(function_name, *arguments)
script = "return (%s).apply(null, arguments)" % ATOMS.fetch(function_name)
\ No newline at end of file