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

click(): Middle-click doesn't work #26

Closed lf2a closed 2 years ago

lf2a commented 2 years ago

Describe the bug Middle-click doesn't work, but it's in the docstring.

In self.click() docstring describes buttons allowed (left, right, middle) but in self.click_at() method raises an exception if button value is not equals left or right.

self.click(): https://github.com/botcity-dev/botcity-framework-web-python/blob/007455b3d4032d5f9942e426854f97e12d137241/botcity/web/bot.py#L1185 self.click_at(): https://github.com/botcity-dev/botcity-framework-web-python/blob/007455b3d4032d5f9942e426854f97e12d137241/botcity/web/bot.py#L1161

Expected behavior Middle-click action

Steps to Reproduce self.click(wait_after=1000, clicks=2, button='middle')

Possible Solution Implements middle click or remove middle click on self.click() docstring.

My Platform

Additional context