course-settings.feature conversion to bokchoy

This commit is contained in:
Muddasser
2016-06-17 10:26:58 +00:00
parent 26d49a7544
commit 186b3badb5
4 changed files with 360 additions and 98 deletions

View File

@@ -160,6 +160,17 @@ def get_codemirror_value(page, index=0, find_prefix="$"):
)
def get_input_value(page, css_selector):
"""
Returns the value of the field matching the css selector.
"""
page.wait_for_element_presence(
css_selector,
'Elements matching "{}" selector are present'.format(css_selector)
)
return page.q(css=css_selector).attrs('value')[0]
def set_input_value(page, css, value):
"""
Sets the text field with the given label (display name) to the specified value.