fix: use aria-label selectors for LinkedIn Easy Apply button (class names are now hashed)

This commit is contained in:
2026-03-06 16:53:25 +00:00
parent b8a0e03c75
commit 02a7501e9d
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ export async function apply(page, job, formFiller) {
Object.assign(meta, pageMeta); Object.assign(meta, pageMeta);
// Verify Easy Apply button // Verify Easy Apply button
const eaBtn = await page.$(`${LINKEDIN_APPLY_BUTTON_SELECTOR}[aria-label*="Easy Apply"]`); const eaBtn = await page.$(LINKEDIN_APPLY_BUTTON_SELECTOR);
if (!eaBtn) return { status: 'skipped_easy_apply_unsupported', meta }; if (!eaBtn) return { status: 'skipped_easy_apply_unsupported', meta };
// Click Easy Apply // Click Easy Apply

View File

@@ -23,8 +23,8 @@ export const APPLY_BETWEEN_DELAY_JITTER = 1000;
// --- LinkedIn --- // --- LinkedIn ---
export const LINKEDIN_BASE = 'https://www.linkedin.com'; export const LINKEDIN_BASE = 'https://www.linkedin.com';
export const LINKEDIN_EASY_APPLY_MODAL_SELECTOR = '.jobs-easy-apply-modal'; export const LINKEDIN_EASY_APPLY_MODAL_SELECTOR = '[role="dialog"]';
export const LINKEDIN_APPLY_BUTTON_SELECTOR = 'button.jobs-apply-button'; export const LINKEDIN_APPLY_BUTTON_SELECTOR = 'button[aria-label*="Easy Apply"]';
export const LINKEDIN_SUBMIT_SELECTOR = 'button[aria-label="Submit application"]'; export const LINKEDIN_SUBMIT_SELECTOR = 'button[aria-label="Submit application"]';
export const LINKEDIN_NEXT_SELECTOR = 'button[aria-label="Continue to next step"]'; export const LINKEDIN_NEXT_SELECTOR = 'button[aria-label="Continue to next step"]';
export const LINKEDIN_REVIEW_SELECTOR = 'button[aria-label="Review your application"]'; export const LINKEDIN_REVIEW_SELECTOR = 'button[aria-label="Review your application"]';