selenium webdriver – Pycharm|Python|configaration error|
I’m using selenium-Version: 4.15.0 and webdriver-manager-Version: 4.0.1, few days back my script stopped running and I’m getting this error
PermissionError: [Errno 13] Permission denied: ‘C:\Users\Nerwadi.Shashikala\.wdm\drivers.json’
C:\Users\Nerwadi.Shashikala\Anaconda3\python.exe C:\Users\Nerwadi.Shashikala\PycharmProjects\pythonProject1\First.py
Traceback (most recent call last):
File “C:\Users\Nerwadi.Shashikala\PycharmProjects\pythonProject1\First.py”, line 10, in
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
File “C:\Users\Nerwadi.Shashikala\Anaconda3\lib\site-packages\webdriver_manager\chrome.py”, line 40, in install
driver_path = self._get_driver_binary_path(self.driver)
File “C:\Users\Nerwadi.Shashikala\Anaconda3\lib\site-packages\webdriver_manager\core\manager.py”, line 41, in _get_driver_binary_path
binary_path = self._cache_manager.save_file_to_cache(driver, file)
File “C:\Users\Nerwadi.Shashikala\Anaconda3\lib\site-packages\webdriver_manager\core\driver_cache.py”, line 57, in save_file_to_cache
self.__save_metadata(driver, binary_path)
File “C:\Users\Nerwadi.Shashikala\Anaconda3\lib\site-packages\webdriver_manager\core\driver_cache.py”, line 90, in __save_metadata
with open(self._drivers_json_path, “w+”) as outfile:
PermissionError: [Errno 13] Permission denied: ‘C:\Users\Nerwadi.Shashikala\.wdm\drivers.json’
Read more here: Source link