Did I find the right examples for you? yes no

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/djangoapps/terrain/ui_helpers.py   MHST2013-14(Download)
def css_fill(css_selector, text, index=0, max_attempts=5):
    assert is_css_present(css_selector)
    return world.retry_on_exception(lambda: world.browser.find_by_css(css_selector)[index].fill(text), max_attempts=max_attempts)
 
 
@world.absorb
def click_link(partial_text, index=0, max_attempts=5):
    return world.retry_on_exception(lambda: world.browser.find_link_by_partial_text(partial_text)[index].click(), max_attempts=max_attempts)
def css_text(css_selector, index=0, max_attempts=5):
 
    # Wait for the css selector to appear
    if world.is_css_present(css_selector):
        return world.retry_on_exception(lambda: world.browser.find_by_css(css_selector)[index].text, max_attempts=max_attempts)
def css_value(css_selector, index=0, max_attempts=5):
 
    # Wait for the css selector to appear
    if world.is_css_present(css_selector):
        return world.retry_on_exception(lambda: world.browser.find_by_css(css_selector)[index].value, max_attempts=max_attempts)
    """
    assert is_css_present(css_selector)
    return world.retry_on_exception(lambda: world.browser.find_by_css(css_selector)[index].html, max_attempts=max_attempts)
 
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/common.py   MHST2013-14(Download)
        login_form.find_by_name('password').fill(password)
        login_form.find_by_name('submit').click()
    world.retry_on_exception(fill_login_form)
    assert_true(world.is_css_present('.new-course-button'))
    world.scenario_dict['USER'] = get_user_by_email(email)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/problems_setup.py   MHST2013-14(Download)
            else:
                assert not element.checked
        world.retry_on_exception(check_problem)
 
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/signup.py   MHST2013-14(Download)
        form_field = register_form.find_by_name(field)
        form_field.fill(value)
    world.retry_on_exception(fill_in_registration)
 
 
def i_press_the_button_on_the_registration_form(step):
    def submit_registration():
        register_form = world.browser.find_by_css('form#register-form')
        register_form.find_by_name('submit').click()
    world.retry_on_exception(submit_registration)
def i_check_checkbox(step, checkbox):
    def check_box():
        world.browser.find_by_name(checkbox).check()
    world.retry_on_exception(check_box)
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/signup.py   MHST2013-14(Download)
        register_form.find_by_name('name').fill('Robot Studio')
        register_form.find_by_name('terms_of_service').check()
    world.retry_on_exception(fill_in_reg_form)
 
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/login.py   MHST2013-14(Download)
        login_form = world.browser.find_by_css('form#login-form')
        login_form.find_by_name('submit').click()
    world.retry_on_exception(submit_login_form)
 
 
        form_field = login_form.find_by_name(field)
        form_field.fill(value)
    world.retry_on_exception(fill_login_form)