我无法弄清楚是什么导致了错误。Python 3.9、3.10。
Traceback (most recent call last):
File "C:\Users\User\Desktop\S\SS\test.py", line 1, in <module>
from seleniumwire import webdriver
File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\seleniumwire\webdriver.py", line 14, in <module>
from selenium.webdriver import TouchActions # noqa
ImportError: cannot import name 'TouchActions' from 'selenium.webdriver' (C:\Users\User\AppData\Roaming\Python\Python39\site-packages\selenium\webdriver\__init__.py)
代码:
from seleniumwire import webdriver