def wait_for_ready_state_complete(driver, timeout=settings.EXTREME_TIMEOUT):

    for x in range(int(timeout * 10)):
        ready_state = driver.execute_script("return document.readyState")
        if ready_state == u'complete':
            return True
        else:
            time.sleep(0.1)
    raise Exception(
        "Page elements never fully loaded after %s seconds!" % timeout)
Test DoOAuthAuth() where oauth user is not authorized.
dataset/ETHPy150Open mdmintz/SeleniumBase/seleniumbase/fixtures/page_actions.py/wait_for_ready_state_complete--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/mac/common/auth_test.py/AuthModuleTest.testDoOAuthAuthWhereNotValidOAuthUser