Skip to content

Commit

Permalink
Merge pull request #562 from xTaylorFerg/fix-457
Browse files Browse the repository at this point in the history
  • Loading branch information
feder-cr authored Oct 18, 2024
2 parents d52c8ed + 59684e2 commit 134485c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/aihawk_easy_applier.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,12 @@ def _get_job_description(self) -> str:
except NoSuchElementException:
logger.debug("See more button not found, skipping")

description = self.driver.find_element(By.CLASS_NAME, 'jobs-description-content__text').text
try:
description = self.driver.find_element(By.CLASS_NAME, 'jobs-description-content__text').text
except NoSuchElementException:
logger.debug("First class not found, checking for second class for premium members")
description = self.driver.find_element(By.CLASS_NAME, 'job-details-about-the-job-module__description').text

logger.debug("Job description retrieved successfully")
return description
except NoSuchElementException:
Expand Down

0 comments on commit 134485c

Please sign in to comment.