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

When I try to do web = Browser() I get this error: ValueError: Timeout value connect was <object object at 0x00000277138947B0>, but it must be an int, float or None. #94

Closed
HerrKallupke opened this issue Jul 17, 2023 · 4 comments

Comments

@HerrKallupke
Copy link

This is all my code:

from webbot import Browser

web = Browser()

and this is the error:

ValueError: Timeout value connect was <object object at 0x00000277138947B0>, but it must be an int, float or None.

@pidgeon777
Copy link

I also have this problem.

I solved it by doing:

pip3 uninstall selenium
pip3 install selenium==4.9.0

but now this error occurs:

DevTools listening on ws://127.0.0.1:52778/devtools/browser/5d9c3a89-6891-4fef-a461-f0422ca64582
[0213/092047.845:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Traceback (most recent call last):
  File "C:\Work\Scripts\Python\leavetime.py", line 28, in <module>
    web = Browser(showWindow=False)
  File "C:\Users\<my_username>\scoop\apps\miniconda3\current\envs\webbot\lib\site-packages\webbot\webbot.py", line 72, in __init__
    [setattr(self, function, getattr(self.driver, function)) for function in
  File "C:\Users\<my_username>\scoop\apps\miniconda3\current\envs\webbot\lib\site-packages\webbot\webbot.py", line 72, in <listcomp>
    [setattr(self, function, getattr(self.driver, function)) for function in
AttributeError: 'WebDriver' object has no attribute 'switch_to_alert'

@HerrKallupke
Copy link
Author

HerrKallupke commented Feb 13, 2024

I really don't know what is going on I'd recommend to just use vanilla selenium or something like that

@pidgeon777
Copy link

After a good amount of work I was able to fix it somehow, you can find a guide I just wrote here:

#95

Hopefully it will be useful to all of you.

@pidgeon777
Copy link

Also I converted my script to "pure" Selenium version, it seems to run faster/better now.

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

2 participants