INNER CODE UNIT · Python
applyProcess
wodsuz/EasyApplyJobsBot · linkedin.py:465
def applyProcess(self, percentage: int, offerPage: str) -> str:
applyPages = math.floor(100 / percentage) - 2
result = ""
for pages in range(applyPages):
# Fill phone number before continuing to next step
self.fillPhoneNumber()
self.driver.find_element(By.CSS_SELECTOR, "button[aria-label='Continue to next step']").click()
time.sleep(random.uniform(1, constants.botSpeed))
# Fill phone number before review
self.fillPhoneNumber()
if config.dryRun:
# In dry-run mode, navigate up to this point but do not submit.
result = "* 🧪 DRY RUN - Would apply to this job: " + str(offerPage)
return result
self.driver.find_element( By.CSS_SELECTOR, "button[aria-label='Review your application']").click()