Create attractive VASL scenarios, with loads of useful information embedded to assist with game play. https://vasl-templates.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
vasl-templates/vasl_templates/webapp/tests/utils.py

19 lines
536 B

""" Helper utilities. """
from selenium.common.exceptions import NoSuchElementException
# ---------------------------------------------------------------------
def find_child( elem, sel ):
"""Find a single child element."""
try:
return elem.find_element_by_css_selector( sel )
except NoSuchElementException:
return None
def find_children( elem, sel ):
"""Find child elements."""
try:
return elem.find_elements_by_css_selector( sel )
except NoSuchElementException:
return None