Module: Selenium::WebDriver::IE::Lib

Extended by:
FFI::Library
Defined in:
lib/selenium/webdriver/ie/lib.rb

Class Method Summary collapse

Class Method Details

.finalize_element(ptr) ⇒ Object



102
103
104
105
106
107
# File 'lib/selenium/webdriver/ie/lib.rb', line 102

def self.finalize_element(ptr)
  code = Lib.wdeFreeElement(ptr)
  if err = WebDriver::Error.for_code(code)
    raise err, "could not free element (#{ptr})"
  end
end