如何在浏览器控制台中使用 Javascipt 遍历虚拟 DOM?

问题描述

最近我试图在 Google Chrome 的控制台中遍历 DOM。

cant traverse inside #document

var list = document.querySelectorAll('.g-recaptcha>div>div'); 
console.log(list)

我不知道如何进入#document。请有人帮忙。 Found this article about #document

但我提供的链接是硒网络驱动程序中的#document 问题。我没有使用 selenium Web 驱动程序,我只想知道如何使用 css 选择器或任何其他 javascript 解决方案遍历 #document。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)