Did I find the right examples for you? yes no

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

src/a/t/atlas-HEAD/terrain.py   atlas(Download)
def edit_field(step, field_name, model, field_value):
    formatted_field_name = world.format_field_name(field_name)
    try:
        world.browser.fill(formatted_field_name, field_value)
    except ElementDoesNotExist:
def edit_field_long(step, field_name, model):
    formatted_field_name = world.format_field_name(field_name)
    try:
        world.browser.fill(formatted_field_name, step.multiline)
    except ElementDoesNotExist:
def edit_translation_field(step, language, field_name, model, field_value):
    translation_form = world.find_translation_form(language, model)
    formatted_field_name = world.format_field_name(field_name)
    world.browser.fill("%s-%s" % (translation_form['id'], formatted_field_name), field_value)
 
@step(u'Given the user sets the "([^"]*)" "([^"]*)" of the "([^"]*)" to the following:')
def edit_translation_field_long(step, language, field_name, model):
    translation_form = world.find_translation_form(language, model)
    formatted_field_name = world.format_field_name(field_name)
def select_field_option(step, option_text, field_name, model):
    formatted_field_name = world.format_field_name(field_name)
    world.select_option_by_text(formatted_field_name, option_text)
    world.set_changed(model, formatted_field_name)