import time

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

chrome = webdriver.Chrome()

chrome.get("https://konflic.github.io/examples/")

input_field = chrome.find_element(value="inp")

input_field.send_keys("Hello, my dear friend!")

time.sleep(1)

input_field.clear()

SPEED = 0.5
time.sleep(SPEED)

input_field.send_keys("-=[ ]=-")

input_field.send_keys(Keys.ARROW_LEFT)
time.sleep(SPEED)
input_field.send_keys(Keys.ARROW_LEFT)
time.sleep(SPEED)
input_field.send_keys(Keys.ARROW_LEFT)
time.sleep(SPEED)
input_field.send_keys(Keys.ARROW_LEFT)
time.sleep(SPEED)
input_field.send_keys(Keys.SPACE)
time.sleep(SPEED)
input_field.send_keys("COBRA")

for _ in range(5):
    time.sleep(SPEED)
    input_field.send_keys(Keys.BACKSPACE)

input_field.send_keys("SELENIUM")
