Skip to content
Draft
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
7 changes: 2 additions & 5 deletions linkedin.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,12 +358,9 @@ def getJobProperties(self, count: int) -> str:
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
return self.driver.find_element(By.XPATH, "//div[contains(@class,'jobs-apply-button--top-card')]//button[contains(@class, 'jobs-apply-button')]")
except Exception:
EasyApplyButton = None

return EasyApplyButton
return None

def fillPhoneNumber(self) -> None:
"""Fill phone number fields if they exist and are empty"""
Expand Down