mirror of
https://github.com/LightZirconite/Microsoft-Rewards-Bot.git
synced 2026-01-11 09:46:16 +00:00
fix: update types for heartbeat interval and constructor logger in DashboardServer and QueryDiversityEngine
This commit is contained in:
@@ -964,6 +964,17 @@ export class Login {
|
||||
}
|
||||
}
|
||||
|
||||
private async clickFirstVisibleSelector(page: Page, selectors: readonly string[]): Promise<boolean> {
|
||||
for (const sel of selectors) {
|
||||
const loc = page.locator(sel).first()
|
||||
if (await loc.isVisible().catch(() => false)) {
|
||||
await loc.click().catch(logError('LOGIN', `Click failed for selector: ${sel}`, this.bot.isMobile))
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
private async switchToPasswordLink(page: Page) {
|
||||
try {
|
||||
const passwordClicked = await this.tryClickPasswordOption(page)
|
||||
|
||||
Reference in New Issue
Block a user