mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-07-24 21:04:58 +00:00
🔧 fix(src/hh/scraper.ts): исправляет селектор кнопки профиля для авторизации пользователя
All checks were successful
Deploy / deploy (push) Successful in 51s
All checks were successful
Deploy / deploy (push) Successful in 51s
This commit is contained in:
@@ -347,9 +347,12 @@ export async function applyToJobs(
|
||||
await page.goto(url, { waitUntil: 'domcontentloaded' })
|
||||
await page.waitForSelector('[data-qa="serp-item__title"]', { timeout: 10000 }).catch(() => null)
|
||||
await page.pause()
|
||||
if (!await page.$('[data-qa="profileAndResumes-button"]')) {
|
||||
if (!await page.$('[data-qa="applicantProfileMe-button"]')) {
|
||||
return { ...results, error: 'Не авторизован. Выполните login' }
|
||||
}
|
||||
// if (!await page.$('[data-qa="profileAndResumes-button"]')) {
|
||||
// return { ...results, error: 'Не авторизован. Выполните login' }
|
||||
// }
|
||||
|
||||
await status('✅ Авторизация выполнена')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user