From acc6b442518a8751bcb3611cd6320d8588ec836b Mon Sep 17 00:00:00 2001 From: Federico <85809106+feder-cr@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:12:31 +0100 Subject: [PATCH] little fix --- linkedIn_easy_applier.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linkedIn_easy_applier.py b/linkedIn_easy_applier.py index 4bc0451..89e8baa 100644 --- a/linkedIn_easy_applier.py +++ b/linkedIn_easy_applier.py @@ -174,6 +174,13 @@ class LinkedInEasyApplier: self._create_and_upload_resume(element) elif 'cover' in parent.text.lower(): self._create_and_upload_cover_letter(element) + else: + if self.resume_dir != None: + resume_path = self.resume_dir.resolve() + if self.resume_dir != None and resume_path.exists() and resume_path.is_file(): + element.send_keys(str(resume_path)) + else: + self._create_and_upload_resume(element) def _create_and_upload_resume(self, element): max_retries = 3