Schedule Python Selenium To Run Daily Using Batch .bat
I create a batch file to run Python Selenium, but the browser does not open, but with an error msg os.path.basename(self.path), self.start_error_message) selenium.common.except
Solution 1:
Is ChromeDriver in your PATH? I have had a similar error and was able to resolve it by adding that to my path as the error suggests.
If you don't want to add it to your PATH you should be able to just specify the exact executable location. This should work for you if you replace the path with the correct one.
webdriver.Chrome(executable_path=r'C:\folder\path\to\chromedriver.exe')
Baca Juga
- I Keep Receiving The Same Error With My Code "attributeerror: Module 'selenium.webdriver' Has No Attribute 'get'"
- Typeerror: 'module' Object Is Not Callable Error With Driver=webdriver("c:\\python34\\lib\\site-packages\\selenium\\webdriver\\chromedriver.exe")
- How Do I Control Selenium Pdf And Excel Files Download Behavior?
Post a Comment for "Schedule Python Selenium To Run Daily Using Batch .bat"