1. 最近在写自动化,定位元素时间,遇到了一个问题,鼠标hover一个组件上面可以弹出一个submenu,但是当鼠标移动时submenu就关闭了,而且直接在elements里搜索该元素时,搜索不到。(根据开发同事的说法,这个是react render过的,所以只会在点击时存在,而且搜索不到),Google到的解决方案
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.