fix null element execption (#370)

This commit is contained in:
LawyZheng
2024-05-28 15:25:13 +08:00
committed by GitHub
parent 4386ba5012
commit 1b2077facd

View File

@@ -714,6 +714,11 @@ function buildTreeFromBody() {
}
}
function processElement(element, parentId) {
if (element === null) {
console.log("get a null element");
return;
}
// Check if the element is interactable
if (isInteractable(element)) {
var elementObj = buildElementObject(element, true);