Fluent.Ribbon icon indicating copy to clipboard operation
Fluent.Ribbon copied to clipboard

Add custom automation peer for various controls

Open batzen opened this issue 7 years ago • 6 comments

The following controls should provide a custom automation peer:

  • [x] Button
  • [x] DropDownButton
  • [x] SplitButton
  • [x] CheckBox
  • [x] InRibbonGallery
  • [x] ScreenTip
  • [x] Backstage
  • [ ] BackstageTabControl
  • [ ] BackstageTabItem
  • [ ] StartScreen
  • [x] ComboBox
  • [x] Ribbon
  • [x] RibbonGroupBox
  • [x] RibbonTabControl
  • [x] RibbonTabItem
  • [x] RadioButton
  • [ ] Spinner
  • [x] TextBox
  • [x] ToggleButton
  • [x] TwoLineLabel

batzen avatar Oct 06 '18 08:10 batzen

#768 for reference

batzen avatar Jan 14 '20 19:01 batzen

I'm using UIAutomation for regression testing, for this I need access to the toggle state of a ToggleButton. With version 7.1 there is no Button-Interface with TogglePattern anymore. The only interface exposed to UIA is the DataItem with an Image.

I don't know the correct way, if there should be a Button beside the Image below the DataItem, or if DataItem should expose a TogglePattern.

dipts avatar Apr 21 '20 06:04 dipts

That's of course not the intended behavior. I am also no expert in writing automation peers, but as there was no feedback during the preview versions I thought everything was fine. Will have a look at this right now.

batzen avatar Apr 22 '20 17:04 batzen

@dipts should be fixed in the latest CI-build

batzen avatar Apr 22 '20 19:04 batzen

@batzen Works perfectly now. Thank you very much!

dipts avatar Apr 22 '20 20:04 dipts

If you find any more issues please report them. As I don't have any disabilities and don't rely on automation peers for ui tests (wrote my own custom framework) it's quite difficult to get everything right.

batzen avatar Apr 22 '20 20:04 batzen