from selenium import webdriver
from selenium.webdriver.common.by import By
import time

class ClickAndSendKeys():

    def test(self):
        baseUrl = "https://letskodeit.teachable.com"
        driver = webdriver.Firefox()
        driver.maximize_window()
        driver.get(baseUrl)
        driver.implicitly_wait(10)

        loginLink = driver.find_element(By.XPATH, "//div[@id='navbar']//a[@href='/sign_in']")
        loginLink.click()

        emailField = driver.find_element(By.ID, "user_email")
        emailField.send_keys("<PASSWORD>")

        passwordField = driver.find_element(By.ID, "user_password")
        passwordField.send_keys("<PASSWORD>")

        time.sleep(3)

        emailField.clear()

        time.sleep(3)

        emailField.send_keys("<PASSWORD>")



ff = ClickAndSendKeys()
ff.test()