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
242 stars 86 forks source link

Browser file not found #9

Closed BF-anri closed 5 years ago

BF-anri commented 5 years ago

using the sample code I have been getting the following output Traceback (most recent call last): File "C:\Users\user\Desktop\file.py", line 2, in <module> web = Browser() File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\webbot\webbot.py", line 50, in __init__ os.chmod(driverpath , 0o755 ) FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python37-32\\lib\\site-packages\\webbot\\drivers\\chrome_windows'

The file does exist the in the given directory, I'm assuming that I've bugged up the installation somehow?

(selenium is installed, maybe also an issue with pip?)

MagedSaeed commented 5 years ago

@Iamnottryingmybest same problem.

vishalvsparrow commented 5 years ago

Facing the same issue

hstabeno commented 5 years ago

The fix I used was edit the webbot.py found at 'C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\webbot\webbot.py'

and change line 45 from: driverfilename = 'chrome_windows' -> driverfilename = 'chrome_windows.exe'

zds-dev commented 5 years ago

I made a pr to fix this here. https://github.com/nateshmbhat/webbot/pull/10#issue-256067877

The fix I used was edit the webbot.py found at 'C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\webbot\webbot.py'

and change line 45 from: driverfilename = 'chrome_windows' -> driverfilename = 'chrome_windows.exe'

nateshmbhat commented 5 years ago

The issue is fixed .