Skip to content
← Back to Community
Webbot error
Profile icon
susthebus

I am making an automatic login bot but when I type web = Browser() it gives me an error:

AttributeError: 'WebDriver' object has no attribute 'switch_to_alert'

please help

Answered by No5972 [earned 5 cycles]
View Answer
Voters
Profile icon
No5972
Profile icon
susthebus
Comments
hotnewtop
Profile icon
No5972

https://github.com/nateshmbhat/webbot/issues/62#issuecomment-945155578

webbot uses selenium on new version of selenium >= "4.0.0" doen't support 'switch_to_alert' and webbot is not upgraded to new selenium so the solution is to undergrade to selenium == "3.141.0" that will work..

Profile icon
CosmicBear

Are you making a Kahoot Spammer?