element = driver.find_element(By.CSS_SELECTOR, "#div2 input[type='text']") element.send_keys('myname')