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

Issue in web = Browser() #97

Open rayud opened 7 months ago

rayud commented 7 months ago

web = Browser() ^^^^^^^^^ File "C:\Users\Rayudu dola\Desktop\freelancing\instagram_mass_venv\Lib\site-packages\webbot\webbot.py", line 68, in init self.driver = webdriver.Chrome(executable_path=driverpath, options=options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: WebDriver.init() got an unexpected keyword argument 'executable_path'

with the following packages: attrs==23.2.0 certifi==2024.2.2 cffi==1.16.0 h11==0.14.0 idna==3.6 MouseInfo==0.1.3 outcome==1.3.0.post0 pillow==10.2.0 PyAutoGUI==0.9.54 pycparser==2.21 PyGetWindow==0.0.9 PyMsgBox==1.0.9 pyperclip==1.8.2 PyRect==0.2.0 PyScreeze==0.1.30 PySocks==1.7.1 pytweening==1.1.0 selenium==4.18.1 sniffio==1.3.0 sortedcontainers==2.4.0 trio==0.24.0 trio-websocket==0.11.1 typing_extensions==4.9.0 urllib3==2.2.1 webbot==0.34 wsproto==1.2.0

BogdanR6 commented 6 months ago

I have the same issue though I did not specify an executable_path as I was following with the documentation. Did you manage to find the problem?

br0k3V commented 5 months ago

I've created a pull request to fix this problem. In the meantime use my fix Go to %localappdata%/Programs/Python/[your version]/Lib/site-packages/webbot Open webbot.py and replace these two lines: Line 69 Replace with self.driver = webdriver.Chrome(keep_alive=True, options=options) Line 79 Replace with 'set_window_position', 'set_window_rect', 'start_client', 'start_session', 'stop_client']]