This commit is contained in:
TheNetsky
2023-10-02 11:52:12 +02:00
parent 8fef05a2b7
commit e8cb195f54
17 changed files with 341 additions and 149 deletions

View File

@@ -6,8 +6,8 @@ const rl = readline.createInterface({
output: process.stdout
})
import { wait } from '../util/Utils'
import { tryDismissAllMessages, tryDismissBingCookieBanner } from '../BrowserUtil'
import { wait } from '../util/Utils'
import { log } from '../util/Logger'
export async function login(page: Page, email: string, password: string) {
@@ -34,7 +34,7 @@ export async function login(page: Page, email: string, password: string) {
log('LOGIN', 'Logged in successfully')
} catch (error) {
log('LOGIN', 'An error occurred:' + error, 'error')
log('LOGIN', 'An error occurred:' + JSON.stringify(error, null, 2), 'error')
}
}
@@ -103,7 +103,7 @@ async function checkBingLogin(page: Page): Promise<void> {
}
} catch (error) {
log('LOGIN-BING', 'An error occurred:' + error, 'error')
log('LOGIN-BING', 'An error occurred:' + JSON.stringify(error, null, 2), 'error')
}
}