text_box = wait.until( EC.visibility_of_element_located((By.NAME, "my-text")) ) text_area = driver.find_element(By.NAME, "my-textarea") text_box.clear() text_box.send_keys("Aisha Rahman") text_area.clear() text_area.send_keys("Please send the invoice.") filled_text = text_box.get_attribute("value") filled_area = text_area.get_attribute("value") assert filled_text == "Aisha Rahman" assert filled_area == "Please send the invoice."