def __get_elements(driver, params):
    """Get elements using Selenium.

    Parameters:
    - driver [selenium] : Selenium driver
    - params [dict] : A dict that contains elements to search the element for
    Returns:
    - output [WebElement list] : A list of found WebElements
    """
    if params.get('id'):
        return [driver.find_element_by_id(params.get('id'))]
    if params.get('name'):
        return driver.find_elements_by_name(params.get('name'))
    elif params.get('xpath'):
        return driver.find_elements_by_xpath(params.get('xpath'))
    elif params.get('link_text'):
        return driver.find_elements_by_link_text(params.get('link_text'))
    elif params.get('partial_link_text'):
        return driver.find_elements_by_partial_link_text(params.get(
            'partial_link_text'))
    elif params.get('tag_name'):
        return driver.find_elements_by_tag_name(params.get('tag_name'))
    elif params.get('class_name'):
        return driver.find_elements_by_class_name(params.get('class_name'))
    elif params.get('css_selector'):
        return driver.find_elements_by_css_selector(params.get('css_selector'))
