Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No element found for selector: #session_key #75

Open
babaz8 opened this issue Aug 25, 2023 · 7 comments
Open

No element found for selector: #session_key #75

babaz8 opened this issue Aug 25, 2023 · 7 comments

Comments

@babaz8
Copy link

babaz8 commented Aug 25, 2023

No element found for selector: #session_key
at assert (/Users//linkedin-easy-apply-bot/node_modules/puppeteer-core/src/util/assert.ts:29:11)
at IsolatedWorld.type (/Users//linkedin-easy-apply-bot/node_modules/puppeteer-core/src/common/IsolatedWorld.ts:348:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async login (/Users//linkedin-easy-apply-bot/login/index.ts:17:3)
at async /Users//linkedin-easy-apply-bot/scripts/apply.ts:45:3

@ismaelrodino2
Copy link

in fetchJobLinksUser.ts before await page.type(selectors.keywordInput, keywords); , add await page.waitForSelector(selectors.keywordInput); .

@AnthonyHeinrichs
Copy link

AnthonyHeinrichs commented Nov 1, 2023

I also have another suggestion to work around this as the above solution wasn't helping and the issue for me as occurring in login -> index.ts.

The selectors specified in selectors -> index.ts wasn't being found so I made the following changes to the login process:

Changed index.ts:14
await page.goto('https://www.linkedin.com', { waitUntil: 'load' });

to
await page.goto('https://www.linkedin.com/login', { waitUntil: 'load' });

Updated my selectors in selectors -> index.ts from line 25 to:

// Login
captcha: "#captcha-internal",
emailInput: "#username",
passwordInput: "#password",
loginSubmit: "button[class*='btn__primary--large from__button--floating']",
skipButton: "button[text()='Skip']",

If you're still running into the issue, try what ismaelrodino2 mentioned above and set the wait for selectors for login selectors etc on the login selectors:
await page.waitForSelector(selectors.emailInput);

@GDemay
Copy link

GDemay commented Aug 28, 2024

I have the same issue

@mrchameleon
Copy link

Using @AnthonyHeinrichs comment, I was able to get the script working, to login and search the job list. However, it is not applying, and there is no error in console.

I'm going to investigate the code and see if it is a changed element name or something. The chat window is popping up and getting in the way, I wonder if that is part of the problem.

@alexwastaken
Copy link

same with @mrchameleon, has anyone found a solution?

@ctoxyz
Copy link

ctoxyz commented Nov 11, 2024

image

Same issue

@ctoxyz
Copy link

ctoxyz commented Nov 11, 2024

I tried this >

in fetchJobLinksUser.ts before await page.type(selectors.keywordInput, keywords);
add await page.waitForSelector(selectors.keywordInput);

still got :

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants