sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03245
[Bug 795498] Re: Make Region.click() arguments optional
I incline to support only one way to specify the target of an action, i.e. click(target).
A problem with click() is that it's unreadable and hard to understand what happens if someone just write click() without a region. and arguments.
(It doesn't make sense if click() does click at the center of SCREEN. It may make sense if it clicks at the current location of the cursor, but it would be inconsistent with region.click().)
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/795498
Title:
Make Region.click() arguments optional
Status in Sikuli:
New
Bug description:
Region.click() should click at its center. It will make code more
clean (and perhaps faster), e.g. from:
for f in findAll(findobjs):
area = Region(f.nearby(100))
f.click(area)
to:
for f in findAll(findobjs):
area = Region(f.nearby(100))
area.click()
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/795498/+subscriptions
References