course-settings.feature conversion to bokchoy
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user