HIITry / xuexitong

杭电hdu学习通刷章节次数

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

netcourse.py 打开后跳到泛雅页面

Finsenty54 opened this issue · comments

DevTools listening on ws://127.0.0.1:6110/devtools/browser/e5b414db-9e1e-485b-9d26-f2336e0c6480
Traceback (most recent call last):
File ".\netcourse.py", line 44, in
log_button = driver.find_element_by_xpath('/html/body/div[2]/div[3]/div/a')
File "C:\Users\finsenty54\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Users\finsenty54\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\finsenty54\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\finsenty54\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[2]/div[3]/div/a"}
(Session info: chrome=87.0.4280.141)