Currently, when I accidentally try to Select a value in a ComboBoxControl, and the value is not present, I get no error whatsoever. So I am left with having to check beforehand if the options of the dropdown contain my target value.
In this case, uiautomation does produce a log entry in its own loggers
Currently, when I accidentally try to
Select
a value in a ComboBoxControl, and the value is not present, I get no error whatsoever. So I am left with having to check beforehand if the options of the dropdown contain my target value.In this case,
uiautomation
does produce a log entry in its own loggershttps://github.com/yinkaisheng/Python-UIAutomation-for-Windows/blob/abb247330bcba4fdb9244f669f451edcab5f4125/uiautomation/uiautomation.py#L7134
and returns False.
However, this message is not bubbled up to me as the user of RPA.Windows, and the return value is not processed: https://github.com/robocorp/rpaframework/blob/092591f72b2ff5d7628f573306899ae7ef6622c3/packages/windows/src/RPA/Windows/keywords/action.py#L234-L245
I would provide a PR, but I am not sure myself what the best solution would be.