My code is
from webbot import Browser
web = Browser()
web.go_to('https://www.facebook.com/')
web.type('[email protected]', into='EMAIL')
web.type('xxxxx',into='PASSWORD')
web.click('Login')
If I tried to run the program then I am getting the Warning. In chrome it shows the "data:," in the search bar.
Warning (from warnings module):
File "/usr/lib/python3/dist-packages/requests/__init__.py", line 89
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
RequestsDependencyWarning: urllib3 (1.26.8) or chardet (3.0.4) doesn't match a supported version!
Traceback (most recent call last):
File "/usr/lib/python3.8/idlelib/run.py", line 559, in runcode
exec(code, self.locals)
File "/home/vyoma_shuttle/webBot.py", line 2, in <module>
web = Browser()
File "/home/vyoma_shuttle/.local/lib/python3.8/site-packages/webbot/webbot.py", line 72, in __init__
[setattr(self, function, getattr(self.driver, function)) for function in
File "/home/vyoma_shuttle/.local/lib/python3.8/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'