Skip to content

Commit 50336ea

Browse files
committed
fix: 修复获取弹窗元素visible问题
1 parent 2ae2723 commit 50336ea

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

build.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default defineBuildConfig({
88
esbuild: {
99
target: 'node18',
1010
minify: true,
11+
sourcemap: true,
1112
},
1213
},
1314
alias: {

src/weixin/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ export async function jumpToConfirmPage() {
117117
await submitReviewBtn!.click()
118118
await sleep(1200) // 可能会报错
119119
spinner.start('正在提交审核中...')
120-
const agreeCheckbox = await page.waitForSelector('.weui-desktop-icon-checkbox')
121-
const nextStepBtn = await page.waitForSelector('.code_submit_dialog .weui-desktop-btn.weui-desktop-btn_primary')
120+
const agreeCheckbox = await page.waitForSelector('.weui-desktop-icon-checkbox', { visible: true })
121+
const nextStepBtn = await page.waitForSelector('.code_submit_dialog .weui-desktop-btn.weui-desktop-btn_primary', { visible: true })
122122
if (!agreeCheckbox || !nextStepBtn)
123123
throw new Error('未找阅读并了解平台审核规则')
124124
await agreeCheckbox.click()

0 commit comments

Comments
 (0)