Did I find the right examples for you? yes no

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

src/a/g/agile-django-HEAD/agile/features/phases_steps.py   agile-django(Download)
def wait_for_the_requested_port(step, port):
    found = world.wait_for_element('#%s' % port)
    assert found, 'This is not the %s port'
 
@step(u'see the "(.+)" port')
def see_the_requested_port(step, port):
    port = world.wait_for_element("#%s" % port)
def see_the_phase_form(step, form):
    found = world.wait_for_element('#%s-phase-dialog' % form)
    assert found.visible, 'The %s Form was not found' % form.capitalize()
    name = step.given(u'see the form field "name"')
    description = step.given(u'see the form field "description"')
def see_the_validation_error_for_field(step, form, value):
    form = form.lower()
    selector = '//div[@id="%s-phase-dialog"]//div[contains(., "%s")]' % (form, value)
    error = world.wait_for_element(selector, dont_fail=True)
    assert error, 'No validation errors as expected'
        assert button, 'There is no %s button for phase %s' % (button_name, number)
        button.click()
        form = world.wait_for_element('#%s-phase-dialog' % button_name.lower())
        try:
            assert form.visible

src/a/g/agile-django-HEAD/agile/features/story_tags_steps.py   agile-django(Download)
def add_a_new_tag(step, tag_name):
    selector = '#new-tag'
    input = world.wait_for_element(selector, 5, 0.5)
    assert input, 'The input for a new tag is not present.'
    input.value = tag_name
def see_a_tag_with_name(step, tag_name):
    selector = '//span[@class="tag-name" and contains(., "%s")]' % tag_name
    tag = world.wait_for_element(selector, 5, 0.5)
    assert tag, 'The tag was not created'
 
@step(u'double click on the name of the tag "(.+)"')
def double_click_a_tag(step, tag_name):
    selector = '//span[@class="tag-name" and contains(., "%s")]' % tag_name
    tag = world.wait_for_element(selector, 5, 0.5)
def see_text_box_with_tag_name(step, tag_name):
    selector = 'input.new-tag-name'
    input = world.wait_for_element(selector, 5, 0.5)
    assert input, 'Such input does not exist'
 
@step(u'replace it with "(.+)"')
def replace_tag_name(step, new_name):
    selector = '//input[@class="new-tag-name"]'
    input = world.wait_for_element(selector, 5, 0.5)

src/a/g/agile-django-HEAD/agile/features/details_steps.py   agile-django(Download)
def see_the_project_form(step, form):
    found = world.wait_for_element('#add-project', 5, 0.5)
    assert found, 'The %s Project Form was not found' % form.capitalize()
 
@step(u'select the admin as a member')
def click_on_a_link_project(step):
    projects = world.wait_for_element("#projects ul li a", 5, 0.5)
    assert projects, 'There are no projects.'
    world.project = world.wait_for_element("div.portlet-header a", 5, 0.5).value
    projects.click()
def click_on_a_story(step):
    story = world.wait_for_element("div.story-header a", 5, 0.5)
    assert story, 'There are no stories.'
    world.story = world.wait_for_element("div.story-header a", 5, 0.5).value
    def ensure_story_opens():
        loaded = None
        try:
            link = world.browser.find_link_by_text(world.story).first.click()
        except:
            loaded = world.wait_for_element('#story-main')
def click_the_star_button(step):
    start = world.wait_for_element("#time-entries-start", 5, 0.5)
    assert start, 'There is not the start button'
    cells = world.browser.find_by_css('#table-container td')
    world.len_table = len(cells)