async function gettree() {
var menu_ = await frame.evaluate(() => {
var $ = window.$;
function menuclick() {
var menu = $(".center_close");
menu.click();
var menu = $(".bottom_close");
menu.click();
}
menuclick();
return true;
});
}
var vindex = 0;
while (await frame.$(".center_close") || await frame.$(".bottom_close")) {
gettree();
vindex++;
await frame.waitFor(500);
}