我正在尝试设置MutationObserver以在加载时观察页面变异.
为此,应在页面加载之前配置MutationObserver.
使用selenium-chromedriver,找不到为此目的注入JS的方法.
我知道chrome扩展可以做到这一点,但扩展将无法在无头模式下工作.
那就是问题所在.
selenium selenium-chromedriver mutation-observers
mutation-observers ×1
selenium ×1
selenium-chromedriver ×1