From 222dcbc1c3da4049763b3e0e09ac6478dd502f46 Mon Sep 17 00:00:00 2001 From: Kshitij ASU Date: Sat, 21 Oct 2023 16:47:33 -0500 Subject: [PATCH] add explicit path specifcation to chrome driver --- assets/script/appliFly.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/assets/script/appliFly.py b/assets/script/appliFly.py index 3ec5ff4..c3d8c91 100644 --- a/assets/script/appliFly.py +++ b/assets/script/appliFly.py @@ -12,6 +12,7 @@ from selenium.webdriver.support.ui import Select from selenium.common.exceptions import NoSuchElementException +from selenium.webdriver.chrome.options import Options try: # ! Make sure you have installed all the dependencies: @@ -57,7 +58,14 @@ # ? When we change jobDetails from the URL using siteid of some other job, it still loads up perfectly. # Create a new instance of the browser (make sure you have the appropriate driver installed) - chromeDriver = webdriver.Chrome() # You can use other drivers like Firefox, Edge, etc. + # You can use other drivers like Firefox, Edge, etc. + + # ____________ If Facing Jobs 0 Jobs found issue ________________ + # Absolute Path to Chrome Driver Example: C:\Users\ASUS\Downloads\chrome\chrome.exe + # chromeDriver = webdriver.Chrome(executable_path=r"Absolute Path to the Chrome Driver") # Uncomment this if facing 0 jobs found issue + # ____________ No Erros ____________________ + chromeDriver = webdriver.Chrome() # Comment this out if facing 0 jobs found issue + chromeDriver.maximize_window() # Navigate to the website