def find_element(driver, xpath):
    """ Find element by xpath

    Args:
        driver (webdriver): Driver used for scrapping the site
        xpath (str): Xpath to find the element

    Returns:
        webelement: first element found that corresponds to the xpath provided
    """

    elems = driver.find_elements_by_xpath(xpath)
    if len(elems) < 1:
        raise ValueError('Element not found.')
    else:
        return elems[0]