I got this error NoSuchElementException when I run the following script.
driver.find_element("xpath", "//*[@id='lastAttemptYear']").click().send_keys("2022")
The original element has shown below.
<input type="text" size="5" maxlength="4" id="lastAttemptYear" name="lastAttemptYear" onkeyup="moveOnMax(this,'lastAttemptMonth')" value="2022" autocomplete="off">
What should I do? thanks!