def takeprofit_input(count, wait):
    wait.until(EC.visibility_of_element_located((By.XPATH, "//*[@class='innerInput-21h1g6jU']")))
    takeprofit_input_box = driver.find_elements_by_xpath("//*[@class='innerInput-21h1g6jU']")[1]
    takeprofit_input_box.send_keys(Keys.BACK_SPACE + Keys.BACK_SPACE + Keys.BACK_SPACE + Keys.BACK_SPACE)
    takeprofit_input_box.send_keys(str(count))
    takeprofit_input_box.send_keys(Keys.ENTER)
    ok_button = driver.find_element_by_name("submit")
    ok_button.click()
def stoploss_input(count, wait):
    wait.until(
        EC.visibility_of_element_located(
            (By.XPATH, "//*[@class='innerInput-29Ku0bwF']")))
    stoploss_input_box = driver.find_elements_by_xpath(
        "//*[@class='innerInput-29Ku0bwF']")[0]
    stoploss_input_box.send_keys(Keys.BACK_SPACE + Keys.BACK_SPACE +
                                 Keys.BACK_SPACE + Keys.BACK_SPACE)
    stoploss_input_box.send_keys(str(count))
    stoploss_input_box.send_keys(Keys.ENTER)
    ok_button = driver.find_element_by_name("submit")
    ok_button.click()
def both_inputs(stoploss_value, takeprofit_value, wait):
    wait.until(EC.visibility_of_element_located((By.XPATH, "//*[@class='innerInput-21h1g6jU']")))
    stoploss_input_box = driver.find_elements_by_xpath("//*[@class='innerInput-21h1g6jU']")[0]
    takeprofit_input_box = driver.find_elements_by_xpath("//*[@class='innerInput-21h1g6jU']")[1]
    stoploss_input_box.send_keys(Keys.BACK_SPACE + Keys.BACK_SPACE + Keys.BACK_SPACE + Keys.BACK_SPACE)
    stoploss_input_box.send_keys(str(stoploss_value))
    takeprofit_input_box.send_keys(Keys.BACK_SPACE + Keys.BACK_SPACE + Keys.BACK_SPACE + Keys.BACK_SPACE)
    takeprofit_input_box.send_keys(str(takeprofit_value))
    takeprofit_input_box.send_keys(Keys.ENTER)
    time.sleep(.5)
    ok_button = driver.find_element_by_name("submit")
    ok_button.click()