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

FIX: _dimensions value assignment #27

Closed lf2a closed 2 years ago

lf2a commented 2 years ago

Problem

When set_screen_resolution(width, height) is called doesn't update self._dimensions attribute.

Steps to Reproduce

from botcity.web import WebBot, Browser

web = WebBot()
web.headless = False
web.browser = Browser.FIREFOX
web.driver_path = '<path>'

web.browse('https://www.google.com')
web.set_screen_resolution(1280, 720)

print(web.display_size())  # (1600, 900)