Did I find the right examples for you? yes no

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

src/a/t/atlas-HEAD/terrain.py   atlas(Download)
        translated_field_name = "%stranslation_set-0-%s" % (model.lower(), formatted_field_name)
        world.browser.fill(translated_field_name, field_value) 
    world.set_changed(model, field_name)
 
@step(u'Given the user sets the "([^"]*)" of the "([^"]*)" to the following:')
        world.browser.fill(translated_field_name, step.multiline) 
 
    world.set_changed(model, formatted_field_name)
 
@step(u'Given the user adds a new "([^"]*)" "([^"]*)" translation')
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)
 
def edit_datetime_field(step, model, field_name, date, time):
    formatted_field_name = world.format_field_name(field_name)
    world.browser.fill("%s_0" % formatted_field_name, date)
    world.browser.fill("%s_1" % formatted_field_name, time)
    world.set_changed(model, formatted_field_name)
    world.browser.execute_script("tinyMCE.getInstanceById('%s').remove()" % field_id)
    world.browser.fill("%s-%s" % (translation_form['id'], formatted_field_name), step.multiline)
    world.set_changed(model, formatted_field_name)
 
@step(r'Then the [^"]+ created on field should be set to the current date')