2

我目前正在使用https://github.com/TatriX/cl-selenium-webdriver cl-selenium。我一直在阅读源代码几次,但我很难找到任何函数来链接选择元素,例如(find-element element). 我可以在不遍历的情况下找到元素,但是无法遍历非常不方便。

有没有办法遍历DOM?或者你将如何提取整个 html 以用丰满或 lquery 解析?

4

1 回答 1

1

嗯,终于找到了一个解决方案, (execute-script "return document.documentElement.innerHTML" '())

于 2018-11-27T07:46:00.853 回答