fix: use aria-label selectors for LinkedIn Easy Apply button (class names are now hashed)
This commit is contained in:
@@ -28,7 +28,7 @@ export async function apply(page, job, formFiller) {
|
||||
Object.assign(meta, pageMeta);
|
||||
|
||||
// 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 };
|
||||
|
||||
// Click Easy Apply
|
||||
|
||||
@@ -23,8 +23,8 @@ export const APPLY_BETWEEN_DELAY_JITTER = 1000;
|
||||
|
||||
// --- LinkedIn ---
|
||||
export const LINKEDIN_BASE = 'https://www.linkedin.com';
|
||||
export const LINKEDIN_EASY_APPLY_MODAL_SELECTOR = '.jobs-easy-apply-modal';
|
||||
export const LINKEDIN_APPLY_BUTTON_SELECTOR = 'button.jobs-apply-button';
|
||||
export const LINKEDIN_EASY_APPLY_MODAL_SELECTOR = '[role="dialog"]';
|
||||
export const LINKEDIN_APPLY_BUTTON_SELECTOR = 'button[aria-label*="Easy Apply"]';
|
||||
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_REVIEW_SELECTOR = 'button[aria-label="Review your application"]';
|
||||
|
||||
Reference in New Issue
Block a user