Did I find the right examples for you? yes no

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

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/component.py   MHST2013-14(Download)
def found_css_func(css):
    return lambda: world.is_css_present(css, wait_time=2)
 
COMPONENT_DICTIONARY = {
    'Discussion': {

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/problem-editor.py   MHST2013-14(Download)
def verify_high_level_source_links(step, visible):
    assert_equal(visible, world.is_css_present('.launch-latex-compiler'))
    world.cancel_component(step)
    assert_equal(visible, world.is_css_present('.upload-button'))
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/common.py   MHST2013-14(Download)
    world.visit('/')
    signin_css = 'a.action-signin'
    assert world.is_css_present(signin_css)
 
 
    def button_clicked():
        confirmation_dismissed = world.is_css_not_present('.is-shown.wrapper-notification-warning')
        error_showing = world.is_css_present('.is-shown.wrapper-notification-error')
        return confirmation_dismissed or error_showing
 
def i_see_a_confirmation(step):
    confirmation_css = '#alert-confirmation'
    assert world.is_css_present(confirmation_css)
 
 
 
    signin_css = 'a.action-signin'
    world.is_css_present(signin_css)
    world.css_click(signin_css)
 
        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/common/djangoapps/terrain/steps.py   MHST2013-14(Download)
def i_visit_the_homepage(step):
    world.visit('/')
    assert world.is_css_present('header.global')
 
 
@step(u'I (?:visit|access|open) the dashboard$')
def i_visit_the_dashboard(step):
    world.visit('/dashboard')
    assert world.is_css_present('section.container.dashboard')
def i_should_be_on_the_dashboard(step):
    assert world.is_css_present('section.container.dashboard')
    assert world.browser.title == 'Dashboard'
 
 
@step(u'I (?:visit|access|open) the courses page$')
def i_am_on_the_courses_page(step):
    world.visit('/courses')
    assert world.is_css_present('section.courses')

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/section.py   MHST2013-14(Download)
def i_see_a_saving_notification(step):
    saving_css = '.wrapper-notification-mini'
    assert world.is_css_present(saving_css)
 
 
def i_see_complete_section_name_with_quote_in_editor(_step):
    css = '.section-name-edit input[type=text]'
    assert world.is_css_present(css)
    assert_equal(world.css_value(css), 'Section with "Quote"')
 
def i_see_a_release_date_for_my_section(_step):
    import re
 
    css = 'span.published-status'
    assert world.is_css_present(css)
def i_see_a_link_to_create_a_new_subsection(_step):
    css = 'a.new-subsection-item'
    assert world.is_css_present(css)
 
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/studio-overview-togglesection.py   MHST2013-14(Download)
def i_see_the_span_with_text(step, text):
    span_locator = '.toggle-button-sections span'
    assert_true(world.is_css_present(span_locator))
    assert_equal(world.css_value(span_locator), text)
    assert_true(world.css_visible(span_locator))
def i_do_not_see_the_span_with_text(step, text):
    # Note that the span will exist on the page but not be visible
    span_locator = '.toggle-button-sections span'
    assert_true(world.is_css_present(span_locator))
    assert_false(world.css_visible(span_locator))

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/courseware_common.py   MHST2013-14(Download)
def i_am_on_the_dashboard_page(step):
    assert world.is_css_present('section.courses')
    assert world.url_equals('/dashboard')
 
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/courseware/features/openended.py   MHST2013-14(Download)
def see_the_red_x(step):
    assert world.is_css_present('div.grader-status > span.incorrect')
 
 
@step(u'I see the grader score "([^"]*)"$')
def see_full_output_link(step):
    assert world.is_css_present('a.full')
 
 
@step('I see the spelling grading message "([^"]*)"$')

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/cms/djangoapps/contentstore/features/video.py   MHST2013-14(Download)
def video_takes_a_single_click(_step):
    assert(not world.is_css_present('.xmodule_VideoModule'))
    world.css_click("a[data-location='i4x://edx/templates/video/default']")
    assert(world.is_css_present('.xmodule_VideoModule'))
 

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/common/djangoapps/terrain/ui_helpers.py   MHST2013-14(Download)
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)

  1 | 2  Next