MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / refreshInbox

Function refreshInbox

content/mail-2925.js:275–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273}
274
275async 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
294async function handlePollEmail(step, payload) {
295 const {

Callers 1

handlePollEmailFunction · 0.70

Calls 2

simulateClickFunction · 0.85
sleepRandomFunction · 0.85

Tested by

no test coverage detected