In Selenium, TimeOut exception occurs when a command takes longer than the wait time to avoid the ElementNotVisible Exception.
If the commands do not complete even after the wait time is over, a TimeOut Exception is thrown.
You can manually increase the wait time by hit-and-trial. If the problem persists for a longer period of time, there may be some other issue and you should continue onto the next solution.
There may be a chance that there are multiple inputs present with the same id. If one of them is hidden, and Selenium is interacting with that element, then there is a chance that Selenium will not be able to return it.
You can try using some other property to locate the element such as
CSS Selector or
Use explicit waits. This will ensure all timeouts happen after the given time. This should be declared at the start of the program before carrying out any tasks.
View all Courses