Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in web = Browser() #97

Open
rayud opened this issue Feb 20, 2024 · 2 comments
Open

Issue in web = Browser() #97

rayud opened this issue Feb 20, 2024 · 2 comments

Comments

@rayud
Copy link

rayud commented Feb 20, 2024

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
Copy link

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
Copy link

br0k3V commented Apr 26, 2024

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']]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants