def get_webdriver_instance():
    se2lib = BuiltIn().get_library_instance('Selenium2Library')
return se2lib._current_browser()
Pass existing Webdriver object to custom Python library for Robot Framework