username_field = driver.find_element(By.ID, "username")# Input operations:
username_field.clear()
username_field.send_keys("sdet_python")
# Reading attributes & states:
val = username_field.get_attribute("value")
is_visible = username_field.is_displayed()
is_active = username_field.is_enabled()