'Click "Update now..." button'

@wait_for_js
def refresh_children(self):

    btn_selector = self._bounded_selector('.library-update-btn')
    self.wait_for_element_presence(btn_selector, 'Update    now    button    is    present.')
    self.q(css=btn_selector).first.click()
    self.wait_for_ajax()
    self.wait_for((lambda : self.is_browser_on_page()), 'StudioLibraryContainerXBlockWrapper    has    reloaded.')
    self.wait_for((lambda : self.is_finished_loading()), 'Loading    indicator    is    not    visible.', timeout=120)
    self.wait_for_ajax()
    self.wait_for_element_absence(btn_selector, 'Wait    for    the    XBlock    to    finish    reloading')
