优化分批执行点击菜单
This commit is contained in:
parent
e7798329a2
commit
f528c74656
@ -444,11 +444,8 @@ class LongiMainPage extends BasePage {
|
|||||||
try {
|
try {
|
||||||
const menuPath = parentMenu.path || parentMenu.text;
|
const menuPath = parentMenu.path || parentMenu.text;
|
||||||
const tabPath = `${menuPath} > ${tabInfo.text}`;
|
const tabPath = `${menuPath} > ${tabInfo.text}`;
|
||||||
|
|
||||||
console.log(`等待页面 ${tabPath} 数据加载...`);
|
|
||||||
await tabInfo.element.click();
|
await tabInfo.element.click();
|
||||||
await this.waitForIBPPageLoadWithRetry(tabPath);
|
await this.waitForIBPPageLoadWithRetry(tabPath);
|
||||||
console.log(`✅ 页面 ${tabPath} 加载完成`);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`处理TAB页失败 [${tabPath}]:`, error.message);
|
console.error(`处理TAB页失败 [${tabPath}]:`, error.message);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user