51Testing软件测试论坛

标题: python爬虫中使用报错! [打印本页]

作者: 测试积点老人    时间: 2022-3-24 09:53
标题: python爬虫中使用报错!
python爬虫中使用selenium browser.execute_script('window.scrollTo(0,document.body.scrollHeight)')报错
  1. Traceback (most recent call last):
  2. File "D:\PracticePython\爬虫demo1\demo2.py\jdtest.py", line 134, in
  3. main()
  4. File "D:\PracticePython\爬虫demo1\demo2.py\jdtest.py", line 131, in main
  5. next_page(i)
  6. File "D:\PracticePython\爬虫demo1\demo2.py\jdtest.py", line 98, in next_page
  7. browser.execute_script('window.scrollTo(0,document.body.scrollHeight)')
  8. File "D:\python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 879, in execute_script
  9. return self.execute(command, {
  10. File "D:\python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 425, in execute
  11. self.error_handler.check_response(response)
  12. File "D:\python3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
  13. raise exception_class(message, screen, stacktrace)
  14. selenium.common.exceptions.WebDriverException: Message: Command not found: POST /session/0f98442a-8de6-4ec3-9d10-589c13f11d89/execute/sync
复制代码




作者: kallinr    时间: 2022-3-25 09:22
不知道
作者: jingzizx    时间: 2022-3-25 14:22
没成功调起来




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2