INNER CODE UNIT · Python
element_exists
wodsuz/EasyApplyJobsBot · linkedin.py:505
def element_exists(self, parent: webdriver.remote.webelement.WebElement, by: str, selector: str) -> bool:
return len(parent.find_elements(by, selector)) > 0
def main() -> None:
start = time.time()
bot = Linkedin()
bot.linkJobApply()
end = time.time()
utils.prYellow("---Took: " + str(round((time.time() - start)/60)) + " minute(s).")
if __name__ == "__main__":
main()