self.driver = webdriver.Chrome("C:\\Users\\eainusn\\drivers\\chromedriver_win32\\chromedriver.exe")
self.login()
def login(self):
self.driver.get("https://www.instagram.com/")
self.driver.find_element_by_name("username").send_keys(self.username)
self.driver.find_element_by_name("password").send_keys(self.password)
以下是错误
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[name="username"]"}
(Session info: chrome=81.0.4044.138)