nateshmbhat / webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
https://pypi.org/project/webbot/
Mozilla Public License 2.0
239 stars 87 forks source link

Premission denied [WinError 5] #66

Open VEZcoding opened 3 years ago

VEZcoding commented 3 years ago

Had to change the webbot.py block to define the executable path for chromedrive. Now it finds it but the program can't access it.

PermissionError: [WinError 5] Access is denied: '...path/chrome_windows.exe'

Selenium doesn't have this problem.

Any suggestions?

manwapri commented 2 years ago

Step 1: Open cmd and fire pip command pip install webbot

Step 2: check your chrome version go to Menu -> Help -> About Google Chrome

Step 3: Download chrome driver as per the chrome version from below link https://sites.google.com/a/chromium.org/chromedriver/downloads

Step 4: extract the driver file and save it to, C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python39\lib\site-packages\webbot\drivers\

Step 5: In drivers forlder, make copy of chrome_windows (Simply copy the file & paste it in same folder) new file will be like "chrome_windows - Copy.exe" and delete the original "chrome_windows.exe"

Step 6: Rename the extracted file "chromedriver.exe" to "chrome_windows.exe"