botcity-dev / botcity-framework-web-python

BotCity Framework Web - Python
https://documentation.botcity.dev/frameworks/web/
Apache License 2.0
40 stars 19 forks source link

[DEPRECATED] msedge-selenium-tools==3.141.4 #42

Closed lf2a closed 2 years ago

lf2a commented 2 years ago

Describe the bug @hhslepicka

This project use the latest msedge-selenium-tools version (3.141.4) If you use msedge-selenium-tools==3.141.4 it throws the exception:

D:\BotCity\projetos\dev\web-test\venv\lib\site-packages\botcity\web\bot.py:230: DeprecationWarning: Selenium Tools for Microsoft Edge is deprecated. Please upgrade to Selenium 4 which has built-in support for Microsoft Edge (Chromium): https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/#upgrading-from-selenium-3
    self._driver = driver_class(options=opt, desired_capabilities=cap, executable_path=driver_path)

Steps to Reproduce

from botcity.web import WebBot, Browser

web = WebBot()
web.headless = False
web.browser = Browser.EDGE
web.driver_path = ''
web.browse('https://google.com')
web.stop_browser()

Possible Solution Install msedge-selenium-tools==3.141.3 after install botcity-framework-web==0.4.0

Or:

Set version 3.141.3 version on https://github.com/botcity-dev/botcity-framework-web-python/blob/99b713c3943a1fa8742c0a02775381046e182a5e/requirements.txt#L3

My Platform

Additional context PYPI - msedge-selenium-tools What Is New In Selenium 4 And What Is Deprecated In It?