我正在使用python使用硒登录到GMAIL。 我的代码给我以下错误:
InvalidElementStateException: Message: invalid element state: Element is not currently interactable and may not be manipulated
我的代码:
elem = browser.find_element_by_name('identifier')
elem.send_keys("usernamekaran")
elem.send_keys(Keys.RETURN)
time.sleep(5)
elem = browser.find_element_by_css_selector("#password > div.aCsJod.oJeWuf > div > div.Xb9hP > div")
elem.clear()
elem.send_keys("random") // ERROR
elem.send_keys(Keys.RETURN)
有人知道如何解决吗?