()
| 273 | } |
| 274 | |
| 275 | async function refreshInbox() { |
| 276 | const refreshBtn = document.querySelector( |
| 277 | '[class*="refresh"], [title*="刷新"], [aria-label*="刷新"], [class*="Refresh"]' |
| 278 | ); |
| 279 | if (refreshBtn) { |
| 280 | simulateClick(refreshBtn); |
| 281 | await sleepRandom(700, 1200); |
| 282 | return; |
| 283 | } |
| 284 | |
| 285 | const inboxLink = document.querySelector( |
| 286 | 'a[href*="mailList"], [class*="inbox"], [class*="Inbox"], [title*="收件箱"]' |
| 287 | ); |
| 288 | if (inboxLink) { |
| 289 | simulateClick(inboxLink); |
| 290 | await sleepRandom(700, 1200); |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | async function handlePollEmail(step, payload) { |
| 295 | const { |
no test coverage detected