'Check if the click handler for the export button has been registered yet'

def is_click_handler_registered(self):

    script = "\n                                                var    $    =    require('jquery'),\n                                                                                buttonEvents    =    $._data($('a.action-primary')[0],    'events');\n                                                return    buttonEvents    &&    buttonEvents.hasOwnProperty('click');"
    stripped_script = ''.join([line.strip() for line in script.split('\n')])
    return self.browser.execute_script(stripped_script)
