错误的nosuchelementException如果屏幕不活动

发布于 2025-02-09 23:45:11 字数 279 浏览 3 评论 0原文

我有一个在社交中执行某些行动的脚本。网络。如果我使窗口处于活动状态(将其打开并保持这种方式),则脚本可以正常工作。但是,如果我切换到另一个应用程序或类似的应用程序,则迟早会出现NosuchelementException错误。

selenium.common.exceptions.nosuchelementException:消息:无元素:无法找到元素:{“ method”:“ css selector”,“ selector”,“ selector”:“。poStheaderactionsbuttonmoreicon”}

I have a script that performs certain actions in the social. networks. If I make the window active (open it and keep it that way), then the script works fine. But if I switch to another application or something similar, then sooner or later NoSuchElementException errors begin to appear.

selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".PostHeaderActionsButtonMoreIcon"}

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

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

发布评论

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