Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试自动执行网页上的任务。
该页面有一个加载动画,我无法让 selenium 检测到,但我注意到当页面处于该状态时,我的鼠标有一个加载动画(加载圆圈)。
是否可以使用 Selenium 检测鼠标何时处于加载动画中?
我猜你可以检查光标样式
element.getCssValue("cursor");
也许会是“等待”
在此处检查可能的值
https://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor