INNER CODE UNIT · Python
easyApplyButton
wodsuz/EasyApplyJobsBot · linkedin.py:358
def easyApplyButton(self) -> Optional[webdriver.remote.webelement.WebElement]:
try:
time.sleep(random.uniform(1, constants.botSpeed))
button = self.driver.find_element(By.XPATH, "//div[contains(@class,'jobs-apply-button--top-card')]//button[contains(@class, 'jobs-apply-button')]")
EasyApplyButton = button
except Exception:
EasyApplyButton = None
return EasyApplyButton
def fillPhoneNumber(self) -> None:
"""Fill phone number fields if they exist and are empty"""
try:
# Get phone number from config or additionalQuestions.yaml
phone_number = ""
# Try to get from config.Phone first
if hasattr(config, 'Phone') and config.Phone and config.Phone.strip():