Skip to content

Commit

Permalink
Merge pull request #5 from harsh52/master
Browse files Browse the repository at this point in the history
modified classname and element id in naukri class since previous values were not working
  • Loading branch information
snapfast authored Nov 7, 2023
2 parents e02866f + 12623f1 commit 8dd2dfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NAUKRI/recommended_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ def click_job(self):
# switch window
self.driver._switch_to.window(self.driver.window_handles[1])
try:
applyContainer = self.driver.find_element(by=By.CLASS_NAME,value='apply-button-container')
applyContainer.find_element(by=By.CLASS_NAME,value='apply-button').click()
applyContainer = self.driver.find_element(by=By.CLASS_NAME,
value='styles_jhc__apply-button-container__5Bqnb')

applyContainer.find_element(by=By.ID, value='apply-button').click()
except NoSuchElementException as e:
print("no apply button found.")
sleep(2)
Expand Down

0 comments on commit 8dd2dfd

Please sign in to comment.