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

# Typing test URL
url = "https://10fastfingers.com/typing-test/english"

# Path to local Chromedriver
path_var = "D:\\chromedriver.exe" 
driver = webdriver.Chrome(path_var)

# Open website and wait
driver.get(url)
driver.implicitly_wait(45)

# Type
textfield = driver.find_element(By.ID, "inputfield")
while True:
    try:
        texttotype = driver.find_element(By.CLASS_NAME, "highlight").text + ' '
        textfield.send_keys(texttotype)
    except Exception as e:
        # Exception occurs if no more words are left to type
        print('Over')
        break

17b5f309cd1f39dd5b7a0262e817fe28c4c04004
<mask token>

<mask token>
driver.get(url)
driver.implicitly_wait(45)
<mask token>
while True:
    try:
        texttotype = driver.find_element(By.CLASS_NAME, 'highlight').text + ' '
        textfield.send_keys(texttotype)
    except Exception as e:
        print('Over')
        break

<mask token>
url = 'https://10fastfingers.com/typing-test/english'
path_var = 'D:\\chromedriver.exe'
driver = webdriver.Chrome(path_var)
driver.get(url)
driver.implicitly_wait(45)
textfield = driver.find_element(By.ID, 'inputfield')
while True:
    try:
        texttotype = driver.find_element(By.CLASS_NAME, 'highlight').text + ' '
        textfield.send_keys(texttotype)
    except Exception as e:
        print('Over')
        break

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
url = 'https://10fastfingers.com/typing-test/english'
path_var = 'D:\\chromedriver.exe'
driver = webdriver.Chrome(path_var)
driver.get(url)
driver.implicitly_wait(45)
textfield = driver.find_element(By.ID, 'inputfield')
while True:
    try:
        texttotype = driver.find_element(By.CLASS_NAME, 'highlight').text + ' '
        textfield.send_keys(texttotype)
    except Exception as e:
        print('Over')
        break

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

# Typing test URL
url = "https://10fastfingers.com/typing-test/english"

# Path to local Chromedriver
path_var = "D:\\chromedriver.exe" 
driver = webdriver.Chrome(path_var)

# Open website and wait
driver.get(url)
driver.implicitly_wait(45)

# Type
textfield = driver.find_element(By.ID, "inputfield")
while True:
    try:
        texttotype = driver.find_element(By.CLASS_NAME, "highlight").text + ' '
        textfield.send_keys(texttotype)
    except Exception as e:
        # Exception occurs if no more words are left to type
        print('Over')
        break
