Add a default target for :click-element

This commit is contained in:
Florian Bruhin 2016-08-18 15:42:26 +02:00
parent cc9b776476
commit e0af03db80

View File

@ -1532,7 +1532,8 @@ class CommandDispatcher:
hide=True) hide=True)
@cmdutils.argument('filter_', choices=['id']) @cmdutils.argument('filter_', choices=['id'])
def click_element(self, filter_: str, value, *, def click_element(self, filter_: str, value, *,
target: usertypes.ClickTarget): target: usertypes.ClickTarget =
usertypes.ClickTarget.normal):
"""Click the element matching the given filter. """Click the element matching the given filter.
The given filter needs to result in exactly one element, otherwise, an The given filter needs to result in exactly one element, otherwise, an