无法在 selenium 中导入 TouchActions (python)

发布于 2025-01-12 02:35:48 字数 454 浏览 1 评论 0原文

并提前致谢。 我对硒有疑问。我无法以任何方式导入 TouchActions 实现。我尝试过:

from selenium import webdriver
#imp. keys
from selenium.webdriver.common.keys import Keys
#imp. touch actions
from selenium.webdriver.common.touch_actions import TouchActions
#imp. time
import time

但它不起作用,因为它给了我ModuleNotFoundError:没有名为'selenium.webdriver.common.touch_actions'的模块错误。我已经安装了 pip3,selenium 的其他所有内容似乎都工作正常(就像它让我导入 ActionChains)。 我不知道该怎么办......

and thanks in advance.
I have a problem with selenium. I can't import the TouchActions implementation in any way. I tried:

from selenium import webdriver
#imp. keys
from selenium.webdriver.common.keys import Keys
#imp. touch actions
from selenium.webdriver.common.touch_actions import TouchActions
#imp. time
import time

and it doesn't work because it gives me the ModuleNotFoundError: No module named 'selenium.webdriver.common.touch_actions' ERROR. I have installed pip3 and everything else from selenium seems to work fine (like It makes me import ActionChains).
I do not know what to do....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文