def create_selector_query(selectors_list):
    """
    Get a list of selectors and append them to a whole one liner that will get
    the element by combining the querySelector function with the provided
    selectors

    If the value `shadowRoot` is given, then the shadow-root element will be
    used in the query
    """
    query = "return document"
    for selector in selectors_list:
        if selector == "shadowRoot":
            query += ".shadowRoot"
            continue

        query += f".querySelector('{selector}')"

    return query