I want to input password to the box with Selenium but it returns selenium.common.exceptions.WebDriverException: Message: element not interactable
My python script:
from selenium import webdriver
browser = webdriver.Chrome(r'c:\chromedriver.exe')
url = 'https://creis.fang.com/'
browser.get(url)
browser.find_element_by_id('cnotp').send_keys('123456')
If I run the script, the above error appears. However, if I type line by line in the console. Then there is no error.
What should I do?
Thanks.