Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions linkedineasyapply.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ def apply_jobs(self, location):
try:
## patch to incorporate new 'verification' crap by LinkedIn
# job_title = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title').text # original code
job_title_element = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title--link')
job_title_element = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__card-link')
job_title = job_title_element.find_element(By.TAG_NAME, 'strong').text

link = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title--link').get_attribute('href').split('?')[0]
link = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__card-link').get_attribute('href').split('?')[0]
except:
pass
try:
Expand Down Expand Up @@ -457,7 +457,7 @@ def apply_jobs(self, location):
while retries < max_retries:
try:
# TODO: This is throwing an exception when running out of jobs on a page
job_el = job_tile.find_element(By.CLASS_NAME, 'job-card-list__title--link')
job_el = job_tile.find_element(By.CLASS_NAME, 'job-card-job-posting-card-wrapper__card-link')
job_el.click()
break
except StaleElementReferenceException:
Expand Down