'Wait for the upload button to appear.'

def _wait_for_button(self):

    return EmptyPromise((lambda : self.q(css='#replace-courselike-button')[0]), 'Upload    button    appears', timeout=30).fulfill()
