Selenium如何定位悬浮框(收缩框):Chrome

如何定位悬浮框(收缩框):(谷歌浏览器)
步骤:
1.按F12
2. 进入Source页面
3. 鼠标悬停在悬浮框上
4. 按F8 或 Ctrl + \(此操作冻结DOM并暂停脚本执行), 直到看到“pause in debugger” 弹框出现。
Selenium如何定位悬浮框(收缩框):Chrome_第1张图片
5. 按 Ctrl + Shift + C, 然后就可以去定位收缩框里的类容啦
Selenium如何定位悬浮框(收缩框):Chrome_第2张图片

an alternative method in Chrome
While the element you want is displayed, press F8 (or Ctrl+/). This will break script execution while freezing the DOM exactly as it is.
From there you can use Ctrl+Shift+C to select the fleeting element.

参考文档链接:https://stackoverflow.com/questions/19422214/how-can-i-inspect-disappearing-element-in-a-browser

参考文档链接:https://blog.csdn.net/sheng_xinjun/article/details/88287153:Sources-> Event Listener Breakpoints-> Mouse-> mousedown in Chrome

你可能感兴趣的:(Selenium如何定位悬浮框(收缩框):Chrome)