import time


def find_button_and_click(driver, xpath, sleep_time=3):
    """Find the botton from xpath and click

    Args:
        driver (webdriver): Selenium webdriver object.
        xpath (str): xpath of the html element to click.
        sleep_time (int, optional): Sleep time period after running the action. Defaults to 3.

    Returns:
        bool: Returns True if the action was successful
    """
    button = driver.find_element_by_xpath(xpath)
    button.click()

    time.sleep(sleep_time)
    return True