def METHOD_NAME(save_screenshot=False, save_screenshot_file=None, text_options=[]):
    log('waiting for loading text to be {}'.format(text_options))
    text_options = [element.lower() for element in text_options]
    while True:
        res = get_loading_text().lower()
        if res in text_options:
            log(res+' matched, exiting wait_for_loading_text')
            if save_screenshot:
                take_screenshot(None, save_screenshot_file)
            break
        else:
            log('wait_for_loading_text: got {}, waiting...'.format(res))
            sleep(0.5)