Python+selenium found that the password entry box display:none, of the login window caused an error when writing the script.

< H1 > Writing application automation scripts selenium.common.exceptions.ElementNotInteractableException: Message: Element < input id= "showPwd" class= "userinput" name= "Password1" type= "text" > is not reachable by keyboard, online search, find display:none problems? If so, how to modify it? I"ve been searching the Internet for a long time, but it still doesn"t work. I can"t change it. Please give me a lot of guidance. Thank you! < / H1 >

from selenium import webdriver
import time
driver = webdriver.Firefox()
driver.get("http://10.2.1.151:8080/AVICIT_SVN_CEC")
time.sleep(1)
driver.find_element_by_xpath("//*[@id="username_"]").send_keys("admin")-sharp
driver.find_element_by_xpath("//*[@id="showPwd"]").send_keys("cape")-sharp
driver.find_element_by_xpath("/html/body/div[2]/div/div[2]/form/input[6]").click()
time.sleep(1)
driver.find_element_by_xpath("/html/body/div[1]/div/div[2]/div[3]/ul/li[9]/a").click()-sharp
driver.find_element_by_xpath("/html/body/div[1]/div/div[2]/div[3]/ul/li[9]/div/ul/table/tbody/tr/td/table/tbody/tr[1]/td/li/a/span[2]").click()-sharp

Mar.30,2021

has been solved. First find the html, of display:none and then locate the element. Use JS to change style=display:none to something other than none, such as block,inline. The code is as follows:
js= "document.getElementById ('password'). Style.display='block'; "
driver.execute_script (js)


your error message is that selenium cannot control keyboard input while operating the browser.
it is recommended not to operate the keyboard while selenium is running.
I have encountered this solution once, and I have only met on Firefox.
I suggest you change chrome, if you can. I didn't encounter this error message when I used chrome
Last : Chrome is good!
-- or try PhantomJS-- 2333333333333

Menu