async function selectPage() {
const elmGetter = new ElementGetter();
//let select = document.querySelectorAll("#root > div > div > div > div.weu-card.weu-card-bordered > div > div.page-ctn.fiex-footer > ul > div > div > div > div.weu-select-dropdown > ul.weu-select-dropdown-list");
//let select50 = document.querySelector("#root > div > div > div > div.weu-card.weu-card-bordered > div > div.page-ctn.fiex-footer > ul > div > div > div > div.weu-select-dropdown > ul.weu-select-dropdown-list > li:nth-child(6)");
//let isSelect = document.querySelector("#root > div > div > div > div.weu-card.weu-card-bordered > div > div.page-ctn.fiex-footer > ul > div > div > div > div.weu-select-selection > input[type=hidden]");
let [select50, isSelect] = await elmGetter.get("#root > div > div > div > div.weu-card.weu-card-bordered > div > div.page-ctn.fiex-footer > ul > div > div > div > div.weu-select-dropdown > ul.weu-select-dropdown-list > li:nth-child(6)",
"#root > div > div > div > div.weu-card.weu-card-bordered > div > div.page-ctn.fiex-footer > ul > div > div > div > div.weu-select-selection > input[type=hidden]")
if (isSelect.value != '50') {
console.log(1);
select50.click();
}
}
报错:Uncaught (in promise) TypeError: parent.querySelector is not a function
是不是不接收这样的节点参数啊?