leexgone / uiautomation-rs

The uiatomation-rs crate is a wrapper for windows uiautomation. This crate can help you make windows uiautomation API calls conveniently.
Apache License 2.0
88 stars 15 forks source link

Sendkeys and SetValue methods are not working for Combobox as expected #22

Closed myasin-codoid closed 2 years ago

myasin-codoid commented 2 years ago

Sendkeys and SetValue methods are not working for Combobox as expected

Issue: Sendkeys on Combobox is not selecting the given option. Issue: SetValue for Combobox is throwing exception.

leexgone commented 2 years ago

Can you give a sample for Sendkeys error?

leexgone commented 2 years ago

SetValue depends on the implementation of Value pattern. The Value pattern is conditional supported by ComboBox. It also may behaves differently between different systems or versions. You can check it with the microsoft accessility tool: Inspect. More infomation about uiautomation patterns: https://docs.microsoft.com/en-us/windows/win32/winauto/uiauto-controlpatternmapping