I have looked into all ElementNotInteractableExceptions question, but have not found an answer for my particular case.
page = r'https://somesite/login.php'
driver = webdriver.Firefox ()
driver.get (page)
loginName = driver.find_element_by_css_selector ('#top-login-uname')
print(loginName.tag_name)
print(loginName.location)
loginName.send_keys ('someloginName')
print(loginName.tag_name) --> input
print(loginName.location) --> {'x': 0, 'y': 0}
Message: Element <input id="top-login-uname" name="login_username" type="text"> is not reachable by keyboard
css_selector finds the element, but for some reason I am getting ElementNotInteractableException.
I have tried using WebDriverWait, but it did not help.
WebDriverWait (driver, 10).until( EC.presence_of_element_located ((By.CSS_SELECTOR, "#top-login-uname")))
this is the html line where login is
<input name="login_username" size="25" maxlength="30" value="" tabindex="101" type="text">